<!DOCTYPE html>
<html lang='zh-CN'>
<head>
<title>zuoyebang/plug/MML2OMML.XSL · 罗敬/lu-py - Gitee.com</title>
<meta content='on' http-equiv='x-dns-prefetch-control'>
<link href='//e.gitee.com' rel='dns-prefetch'>
<link href='//files.gitee.com' rel='dns-prefetch'>
<link href='//toscode.gitee.com' rel='dns-prefetch'>
<link href='https://cn-assets.gitee.com' rel='dns-prefetch'>
<link href='https://portrait.gitee.com' rel='dns-prefetch'>
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="https://cn-assets.gitee.com/assets/favicon-9007bd527d8a7851c8330e783151df58.ico" />
<link rel="canonical" href="https://gitee.com/Luo_Jing98358/lu-py" />
<meta content='gitee.com/Luo_Jing98358/lu-py git https://gitee.com/Luo_Jing98358/lu-py.git' name='go-import'>
<meta charset='utf-8'>
<meta content='always' name='referrer'>
<meta content='Gitee' property='og:site_name'>
<meta content='Object' property='og:type'>
<meta content='https://gitee.com/Luo_Jing98358/lu-py/blob/master/zuoyebang/plug/MML2OMML.XSL' property='og:url'>
<meta content='https://gitee.com/static/images/logo_themecolor.png' itemprop='image' property='og:image'>
<meta content='zuoyebang/plug/MML2OMML.XSL · 罗敬/lu-py - Gitee.com' itemprop='name' property='og:title'>
<meta content='python 相关脚本' property='og:description'>
<meta content='码云,Gitee,代码托管,Git,Git@OSC,Gitee.com,开源,内源,项目管理,版本控制,开源代码,代码分享,项目协作,开源项目托管,免费代码托管,Git代码托管,Git托管服务' name='Keywords'>
<meta content='python 相关脚本' itemprop='description' name='Description'>
<meta content='pc,mobile' name='applicable-device'>

<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="27Mrj2gHPEhEwMSYVlrJI/zH212SXhbN72ggAbxWtj9TGaVmsGfRgdw7Uo4j3Y6ulkyy/H9p8iSAOTQZava72Q==" />

<link rel="stylesheet" media="all" href="https://cn-assets.gitee.com/assets/application-b429676c43f961d3dfb9a62b92d7e148.css" />
<script>
//<![CDATA[
window.gon = {};gon.locale="zh-CN";gon.sentry_dsn=null;gon.baidu_register_hm_push=null;gon.sensor={"server_url":"https://haveaniceday.gitee.com:3443/sa?project=production","sdk_url":"https://cn-assets.gitee.com/assets/static/sensors-sdk-2f850fa5b654ad55ac0993fda2f37ba5.js","page_type":"其他"};gon.info={"controller_path":"blob","action_name":"show","current_user":{"id":2237619,"name":"Admin","username":"weiweimaibing_juhagen","official":false,"admin":false,"avatar_url":"no_portrait.png#Admin-weiweimaibing_juhagen"}};gon.tour_env={"current_user":"weiweimaibing_juhagen","action_name":"show","original_url":"https://gitee.com/Luo_Jing98358/lu-py/blob/master/zuoyebang/plug/MML2OMML.XSL","controller_path":"blob"};gon.http_clone="https://gitee.com/Luo_Jing98358/lu-py.git";gon.user_project="Luo_Jing98358/lu-py";gon.manage_branch="管理分支";gon.manage_tag="管理标签";gon.enterprise_id=0;gon.create_reaction_path="/Luo_Jing98358/lu-py/reactions";gon.ipipe_base_url="https://go-api.gitee.com";gon.artifact_base_url="https://go-repo.gitee.com";gon.gitee_go_remote_url="https://go.gitee.com/assets";gon.gitee_go_active=false;gon.current_project_is_mirror=false;gon.show_repo_comment=false;gon.diagram_viewer_path="https://diagram-viewer.giteeusercontent.com";gon.ref="master";
//]]>
</script>
<script src="https://cn-assets.gitee.com/assets/static/sensor-6269b9ad61bbcdaff20078e5dcff62d5.js"></script>
<script src="https://cn-assets.gitee.com/assets/static/sentry-5.1.0-a823fb0be1b61c5d7ca4a89f0536cb0a.js"></script>
<script src="https://cn-assets.gitee.com/assets/application-41226c6a36ee674dcabaa6eb9b9e2a26.js"></script>
<script src="https://cn-assets.gitee.com/assets/lib/jquery.timeago.zh-CN-4a4818e98c1978d2419ab19fabcba740.js"></script>

<link rel="stylesheet" media="all" href="https://cn-assets.gitee.com/assets/projects/application-46b94c31ba11ae8c37eacce2bdb5603e.css" />
<script src="https://cn-assets.gitee.com/assets/projects/app-9e2d277091428536167de1d8fba0e8cb.js"></script>

<script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
  var title = document.title.replace(/( - Gitee| - 码云)$/, '')
      imgUrl = '';
  
  document.addEventListener('DOMContentLoaded', function(event) {
    var imgUrlEl = document.querySelector('.readme-box .markdown-body > img, .readme-box .markdown-body :not(a) > img');
    imgUrl = imgUrlEl && imgUrlEl.getAttribute('src');
  
    if (!imgUrl) {
      imgUrlEl = document.querySelector('meta[itemprop=image]');
      imgUrl = imgUrlEl && imgUrlEl.getAttribute('content');
      imgUrl = imgUrl || "https://gitee.com/static/images/logo_themecolor.png";
    }
  
    wx.config({
      debug: false,
      appId: "wxff219d611a159737",
      timestamp: "1721482510",
      nonceStr: "89d807d41ea31b81e55553c935022107",
      signature: "43122b28b2602ce40d4ce862c06b5211e3b3350c",
      jsApiList: [
        'onMenuShareTimeline',
        'onMenuShareAppMessage'
      ]
    });
  
    wx.ready(function () {
      wx.onMenuShareTimeline({
        title: title, // 分享标题
        link: "https://gitee.com/Luo_Jing98358/lu-py/blob/master/zuoyebang/plug/MML2OMML.XSL", // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
        imgUrl: imgUrl // 分享图标
      });
      wx.onMenuShareAppMessage({
        title: title, // 分享标题
        link: "https://gitee.com/Luo_Jing98358/lu-py/blob/master/zuoyebang/plug/MML2OMML.XSL", // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
        desc: document.querySelector('meta[name=Description]').getAttribute('content'),
        imgUrl: imgUrl // 分享图标
      });
    });
    wx.error(function(res){
      console.error('err', res)
    });
  })
</script>

<script type='text/x-mathjax-config'>
MathJax.Hub.Config({
  tex2jax: {
    inlineMath: [['$','$'], ['\\(','\\)']],
    displayMath: [["$$","$$"],["\\[","\\]"]],
    processEscapes: true,
    skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'],
    ignoreClass: "container|files",
    processClass: "markdown-body"
  }
});
</script>
<script src="https://cn-assets.gitee.com/uploads/resources/MathJax-2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

<script>
  (function () {
    var messages = {
      'zh-CN': {
        addResult: '增加 <b>{term}</b>',
        count: '已选择 {count}',
        maxSelections: '最多 {maxCount} 个选择',
        noResults: '未找到结果',
        serverError: '连接服务器时发生错误'
      },
      'zh-TW': {
        addResult: '增加 <b>{term}</b>',
        count: '已選擇 {count}',
        maxSelections: '最多 {maxCount} 個選擇',
        noResults: '未找到結果',
        serverError: '連接服務器時發生錯誤'
      }
    }
  
    if (messages[gon.locale]) {
      $.fn.dropdown.settings.message = messages[gon.locale]
    }
  }());
</script>

<script>
  var userAgent = navigator.userAgent;
  var isLessIE11 = userAgent.indexOf('compatible') > -1 && userAgent.indexOf('MSIE') > -1;
  if(isLessIE11){
    var can_access = ""
    if (can_access != "true"){
      window.location.href = "/incompatible.html";
    }
  }
  document.addEventListener("error", function (ev) {
    var elem = ev.target;
    if (elem.tagName.toLowerCase() === 'img') {
      elem.src = "";
    }
  }, true);
</script>
</head>

<body class='git-project lang-zh-CN'>
<header class='common-header fixed noborder' id='git-header-nav'>
<div class='ui container'>
<div class='ui menu header-menu header-container'>
<div class='git-nav-expand-bar'>
<i class='iconfont icon-mode-table'></i>
</div>
<div class='gitee-nav__sidebar'>
<div class='gitee-nav__sidebar-container'>
<div class='gitee-nav__sidebar-top'>
<div class='gitee-nav__avatar-box'>
<a href="/weiweimaibing_juhagen"><img class="ui avatar image weiweimaibing_juhagen-avatar" avatar="Admin-weiweimaibing_juhagen" />
</a></div>
<div class='gitee-nav__info-box'>
<a href="/weiweimaibing_juhagen">Admin</a>
</div>
</div>
<div class='gitee-nav__sidebar-middle'>
<div class='gitee-nav__sidebar-list'>
<ul>
<li class='gitee-nav__sidebar-item'>
<a href="/weiweimaibing_juhagen"><i class='iconfont icon-ic-dashboard'></i>
<span class='gitee-nav__sidebar-name'>个人主页</span>
</a></li>
<li class='gitee-nav__sidebar-item'>
<a href="/explore"><i class='iconfont icon-ic-discover'></i>
<span class='gitee-nav__sidebar-name'>开源</span>
</a></li>
<li class='gitee-nav__sidebar-item'>
<a href="/enterprises"><i class='iconfont icon-ic-enterprise'></i>
<span class='gitee-nav__sidebar-name'>企业版</span>
</a></li>
<li class='gitee-nav__sidebar-item'>
<a href="/education"><i class='iconfont icon-ic-education'></i>
<span class='gitee-nav__sidebar-name'>高校版</span>
</a></li>
<li class='gitee-nav__sidebar-item split-line'></li>
<li class='gitee-nav__sidebar-item'>
<a href="/search"><i class='iconfont icon-ic-search'></i>
<span class='gitee-nav__sidebar-name'>搜索</span>
</a></li>
<li class='gitee-nav__sidebar-item'>
<a href="/help"><i class='iconfont icon-help-circle'></i>
<span class='gitee-nav__sidebar-name'>帮助中心</span>
</a></li>
<li class='gitee-nav__sidebar-item'>
<a href="/terms"><i class='iconfont icon-file'></i>
<span class='gitee-nav__sidebar-name'>使用条款</span>
</a></li>
<li class='gitee-nav__sidebar-item'>
<a href="/about_us"><i class='iconfont icon-issuepx'></i>
<span class='gitee-nav__sidebar-name'>关于我们</span>
</a></li>
<li class='gitee-nav__sidebar-item'>
<a href="/profile/account_information"><i class='iconfont icon-edit'></i>
<span class='gitee-nav__sidebar-name'>设置</span>
</a></li>
<li class='gitee-nav__sidebar-item'>
<a rel="nofollow" data-method="delete" href="/logout"><i class='iconfont icon-ic-logout'></i>
<span class='gitee-nav__sidebar-name'>
退出
</span>
</a></li>
</ul>
</div>
</div>
<div class='gitee-nav__sidebar-bottom'>
<div class='gitee-nav__sidebar-close-button'>
<i class='fa fa-angle-double-left'></i>
</div>
</div>
</div>
</div>

<!-- /todo 10周年活动结束后 恢复 -->
<div class='item gitosc-logo'>
<a href="https://gitee.com"><img alt='Gitee - 基于 Git 的代码托管和研发协作平台' class='ui inline image' height='28' src='/static/images/logo.svg?t=158106664' title='Gitee - 基于 Git 的代码托管和研发协作平台' width='95'>
<img alt='Gitee - 基于 Git 的代码托管和研发协作平台' class='ui inline black image' height='28' src='/static/images/logo-black.svg?t=158106664' title='Gitee - 基于 Git 的代码托管和研发协作平台' width='95'>
</a></div>
<a title="开源" class="item " href="/explore">开源
</a><a title="企业版" class="item " sa_evt="click_GiteeCommunity_tab_En" href="/enterprises">企业版
</a><a title="高校版" class="item " href="/education">高校版
</a><a title="私有云" class="item" target="_blank" href="https://gitee.cn?utm_source=giteecom">私有云
</a><a title="Gitee AI" class="item mr-3" id="gitee-blog" target="_blank" href="https://ai.gitee.com/?utm_sources=site_nav">Gitee AI
<sup class='ui red label'>
NEW
</sup>
</a><div class='dropdown item ui' id='my-gitee-dropdown'>
<a href="/">我的</a>
<i class='dropdown icon'></i>
<div class='menu'>
<div class='ui active dimmer inverted js-my-gitee-dropdown-loader'>
<div class='ui loader'></div>
</div>
<div class='header user-enterprises'>
<a class="pull-right" target="_blank" href="/weiweimaibing_juhagen/dashboard/enterprises">全部</a>
企业
<span class='count'></span>
</div>
<div class='disabled item tip user-enterprises'>
无企业
</div>
<div class='header user-groups'>
<a class="pull-right" target="_blank" href="/weiweimaibing_juhagen/dashboard/groups">全部</a>
组织
<span class='count'></span>
</div>
<div class='disabled item tip user-groups'>
无组织
</div>
<div class='header user-programs'>
项目
<span class='count'></span>
</div>
<div class='disabled item tip user-programs'>
<span class="translation_missing" title="translation missing: zh-CN.layouts.header.empty_programs">Empty Programs</span>
</div>
<div class='header user-projects'>
<a class="pull-right" target="_blank" href="/weiweimaibing_juhagen/projects">全部</a>
仓库
<span class='count'></span>
</div>
<div class='disabled item tip user-projects'>
无项目
</div>
</div>
</div>
<div class='center responsive-logo'>
<a href="https://gitee.com"><img alt='Gitee - 基于 Git 的代码托管和研发协作平台' class='ui inline image' height='24' src='/static/images/logo.svg?t=158106664' title='Gitee - 基于 Git 的代码托管和研发协作平台' width='85'>
<img alt='Gitee - 基于 Git 的代码托管和研发协作平台' class='ui inline black image' height='24' src='/static/images/logo-black.svg?t=158106664' title='Gitee - 基于 Git 的代码托管和研发协作平台' width='85'>
</a></div>
<div class='right menu userbar right-header' id='git-nav-user-bar'>
<form class="ui item" id="navbar-search-form" data-text-require="搜索关键字不能少于1个" data-text-filter="搜索格式不正确" action="/search" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="&#x2713;" />
<input type="hidden" name="type" id="navbar-search-type" />
<input type="hidden" name="fork_filter" id="fork_filter" value="on" />
<div class='ui search header-search'>
<input type="text" name="q" id="navbar-search-input" value="" class="prompt" placeholder="搜开源" />
</div>
</form>

<script>
  var can_search_in_repo = 1,
      repo = "VFhwWk1FMVVhekpPUkZwb1RucFplbHBuUFQxaE56WXpaZz09YTc2M2Y=",
      reponame = "Luo_Jing98358/lu-py";
  
  $(function() {
    var $search = $('#navbar-search-form .ui.search');
    $search.search({
      apiSettings: {
        url: '/search/relative_project?q={query}',
        onResponse: function (res) {
          if (res && res.status === 200 && res.data) {
            var query = htmlSafe($search.search('get value'));
  
            res.data.map(function (item) {
              item.path_ns = '/' + item.path_ns;
              item.icon = 'iconfont icon-project-public';
            });
            res.data.unshift({
              name_ns: "在全站搜索 <b class='hl'>" + query +"</b> 相关项目",
              path_ns: '/search?fork_filter=on&q=' + query,
              icon: 'iconfont icon-search'
            });
            return res;
          } else {
            return { data: [] };
          }
        }
      },
      fields: {
        results: 'data',
        description: 'name_ns',
        url: 'path_ns',
        icon: 'icon'
      },
      minCharacters: 1,
      maxResults: 10,
      searchDelay: 250,
      showNoResults: false,
      transition: 'fade'
    });
  });
</script>

<div class='item ui dropdown empty' data-count-path='/notifications/unread_count' data-enable data-mark-notice-path='/notifications/mark' id='notice-dropdown'>
<a class="remind-button" href="/notifications"><i class='iconfont icon-remind'></i>
<div class='notice-count total'></div>
</a><div class='notice-dropdown-panel menu'>
<div class='notice-dropdown-panel-header'>
<div class='tab active' data-data-path='/notifications/notices?scope=referer' data-html-path='/notifications/referer' data-scope='referer'>
<div class='content'>
@ 我
<div class='notice-count referer'></div>
</div>
</div>
<div class='tab' data-data-path='/notifications/notices?scope=infos' data-html-path='/notifications/infos' data-scope='infos'>
<div class='content'>
通知
<div class='notice-count infos'></div>
</div>
</div>
<div class='tab' data-data-path='/notifications/notices?scope=messages' data-html-path='/notifications/messages' data-scope='messages'>
<div class='content'>
私信
<div class='notice-count messages'></div>
</div>
</div>
</div>
<div class='item notice-dropdown-panel-container'>
<div class='ui dimmer over active'>
<div class='ui loader'></div>
</div>
<div class='notice-list'></div>
<div class='notice-dropdown-panel-blank'>
暂没有新消息
</div>
</div>
<div class='notice-dropdown-panel-footer'>
<div class='action'>
<div class='side left'>
<a class="mark-notices" href="javascript: void(0);">当前标记为已读
</a></div>
<div class='side right'>
<a class="load-all" target="_blank" href="javascript: void(0);">查看全部
</a></div>
</div>
</div>
</div>
</div>

<div class='ui item' id='feature-update-notice'>
<div class='notice-update-icon'>
<a class="notice-update-popup click-knowed" title="" href="javascript:void(0)"><img alt="功能更新" title="" class="bubl_icon bubl-off-icon" src="https://cn-assets.gitee.com/assets/bulb_off-24ee940be20998aace89a3f040cbc704.svg" />
<img alt="功能更新" title="" class="bubl_icon bubl-on-icon" src="https://cn-assets.gitee.com/assets/bulb_on-3986b1dc417285398e3d15671bd8f261.svg" />
</a></div>
<div class='feature-update-notice-panel menu'>
<div class='notice-img'>
<img alt="" title="" class="notice-img-show" src="" />
</div>
<div class='notice-update-title'></div>
<div class='notice-update-des'></div>
<div class='notice-btn-list d-flex-between'>
<button name="button" type="button" class="ui basic orange button btn-notice btn-knowed click-knowed" style="margin-right: 0">我知道了</button>
<a class="ui button orange btn-notice btn-details click-knowed" target="_blank" href="">查看详情</a>
</div>
</div>
</div>

<div class='ui dropdown link item' id='git-nav-create'>
<i class='iconfont icon-add-thin'></i>
<div class='right menu'>
<a class="item" href="/projects/new"><i class='add square icon'></i>
新建仓库
</a><a class="item" href="/organizations/new"><i class='group icon'></i>
创建组织
</a><a class="item" sa_evt="click_GiteeCommunity_tab_plus_EnSignup" href="/enterprises/new"><i class='icon iconfont icon-enterprise'></i>
开通企业版
</a><a class="item" href="/projects/import/url"><i class='github icon'></i>
从 GitHub / GitLab 导入仓库
</a><a class="item" href="/weiweimaibing_juhagen/codes/new"><i class='code icon'></i>
发布代码片段
</a></div>
</div>
<div class='ui dropdown item' id='git-nav-user'>
<img class="ui avatar image" avatar="Admin-weiweimaibing_juhagen" />
<i class='dropdown icon'></i>
<div class='right menu'>
<a class="item" href="/weiweimaibing_juhagen"><i class='iconfont icon-ic-home'></i>
个人主页
</a><a class="item" href="/weiweimaibing_juhagen/starred"><i class='iconfont icon-star'></i>
我的星选集
</a><a class="item" sa_evt="recommenderClick" sa_click_location="头像-成为推荐官" href="/profile/cps/overview"><img src="https://cn-assets.gitee.com/assets/cps_icon-9c17338b5d65451ce5190ddb75fce3c7.svg" alt="Cps icon" />
成为推荐官
</a><a class="item" href="/profile/account_information"><div class='mayun-icon my-ic-edit my-ic-edit-dims'></div>
设置
</a><div class='divider'></div>
<a class="item" target="_blank" href="https://help.gitee.com"><div class='mayun-icon my-ic-help my-ic-help-dims'></div>
帮助
</a><div class='divider'></div>
<a class="item destroy-user-session" rel="nofollow" data-method="delete" href="/logout"><div class='mayun-icon my-ic-exit my-ic-exit-dims'></div>
退出
</a></div>
</div>
<script>
  $('.destroy-user-session').on('click', function() {
    $.cookie('access_token', null, { path: '/' });
  })
</script>

</div>
</div>
</div>
</header>
<script>
  Gitee.initNavbar()
  Gitee.initRepoRemoteWay()
  $.cookie('user_locale',null)
</script>

<script>
  var userAgent = navigator.userAgent;
  var isLessIE11 = userAgent.indexOf('compatible') > -1 && userAgent.indexOf('MSIE') > -1;
  if(isLessIE11){
    var can_access = ""
    if (can_access != "true"){
      window.location.href = "/incompatible.html";
    }
  }
</script>

<div class='fixed-notice-infos'>
<div class='all-messages'>
<div class='ui info message' id='git-bulletin'>
<a href=https://wj.qq.com/s2/14795837/1e1d/ target='_blank'>【Gitee Al】奖池超20万人民币，欢迎每个有想法的你！AI应用开发大赛火热报名中，点击立即报名~</a>
<i class='icon remove' id='remove-bulletin'></i>
</div>
</div>
<div class='ui container'>
<div class='flash-messages' id='messages-container'></div>
</div>
<script>
  (function() {
    $(function() {
      var $error_box, alertTip, notify_content, notify_options, template;
      template = '<div data-notify="container" class="ui {0} message" role="alert">' + '<i data-notify="dismiss" class="close icon"></i>' + '<span data-notify="message">{2}</span>' + '</div>';
      notify_content = null;
      notify_options = {};
      alertTip = '';
      $error_box = $(".flash_error.flash_error_box");
      if (notify_options.type === 'error' && $error_box.length > 0 && !$.isEmptyObject(notify_content.message)) {
        if (notify_content.message === 'captcha_fail') {
          alertTip = "验证码不正确";
        } else if (notify_content.message === 'captcha_expired') {
          alertTip = "验证码已过期，请点击刷新";
        } else if (notify_content.message === 'not_found_in_database') {
          alertTip = "帐号或者密码错误";
        } else if (notify_content.message === 'not_found_and_show_captcha') {
          alertTip = "帐号或者密码错误";
        } else if (notify_content.message === 'phone_captcha_fail') {
          alertTip = "手机验证码不通过";
        } else {
          alertTip = notify_content.message;
        }
        return $error_box.html(alertTip).show();
      } else if (notify_content) {
        if ("show" === 'third_party_binding') {
          return $('#third_party_binding-message').html(notify_content.message).addClass('ui message red');
        }
        notify_options.delay = 3000;
        notify_options.template = template;
        notify_options.offset = {
          x: 10,
          y: 30
        };
        notify_options.element = '#messages-container';
        return $.notify(notify_content, notify_options);
      }
    });
  
  }).call(this);
</script>

</div>
<script>
  (function() {
    $(function() {
      var setCookie;
      setCookie = function(name, value) {
        $.cookie(name, value, {
          path: '/',
          expires: 365
        });
      };
      $('#remove-bulletin, #remove-bulletin-dashboard').on('click', function() {
        setCookie('remove_bulletin', "gitee-maintain-1720417181");
        $('#git-bulletin').hide();
      });
      $('#remove-member-bulletin').on('click', function() {
        setCookie('remove_member_bulletin', "gitee_member_bulletin");
        $(this).parent().hide();
      });
      return $('#remove-gift-bulletin').on('click', function() {
        setCookie('remove_gift_bulletin', "gitee-gift-bulletin");
        $(this).parent().hide();
      });
    });
  
  }).call(this);
</script>
<script>
  function closeMessageBanner(pthis, type, val) {
    var json = {}
  
    val = typeof val === 'undefined' ? null : val
    $(pthis).parent().remove()
    if (type === 'out_of_enterprise_member') {
      json = {type: type, data: val}
    } else if (type === 'enterprise_overdue') {
      json = {type: type, data: val}
    }
    $.post('/profile/close_flash_tip', json)
  }
</script>

<div class='site-content'>
<div class='git-project-header'>
<div class='fixed-notice-infos'>
<div class='ui info icon floating message green' id='fetch-ok' style='display: none'>
<div class='content'>
<div class='header status-title'>
<i class='info icon status-icon'></i>
代码拉取完成，页面将自动刷新
</div>
</div>
</div>
<div class='ui info icon floating message error' id='fetch-error' style='display: none'>
<div class='content'>
<div class='header status-title'>
<i class='info icon status-icon'></i>
<span class='error_msg'></span>
</div>
</div>
</div>
</div>
<div class='ui container'>

<div class='git-project-header-details'>
<div class='git-project-header-container'>
<div class='git-project-header-actions'>
<div class='ui tiny modal project-donate-modal' id='project-donate-modal'>
<i class='iconfont icon-close close'></i>
<div class='header'>捐赠</div>
<div class='content'>
该仓库未开启捐赠功能，可发送私信通知作者开启
</div>
<div class='actions'>
<a class='ui blank button cancel'>取消</a>
<a class='ui orange ok button' href='/notifications/messages/5740173?donate_project=Luo_Jing98358%2Flu-py'>发送私信</a>
</div>
</div>
<div class='ui small modal wepay-qrcode'>
<i class='iconfont icon-close close'></i>
<div class='header'>
扫描微信二维码支付
<span class='wepay-cash'></span>
</div>
<div class='content weqcode-center'>
<img id='wepay-qrcode' src=''>
</div>
<div class='actions'>
<div class='ui cancel blank button'>取消</div>
<div class='ui ok orange button'>支付完成</div>
</div>
</div>
<div class='ui mini modal' id='confirm-alipay-modal'>
<div class='header'>支付提示</div>
<div class='content'>
将跳转至支付宝完成支付
</div>
<div class='actions'>
<div class='ui approve orange button'>确定</div>
<div class='ui blank cancel button'>取消</div>
</div>
</div>

<span class='ui buttons basic watch-container'>
<div class='ui dropdown button js-project-watch' data-watch-type='unwatch'>
<input type='hidden' value=''>
<i class='iconfont icon-watch'></i>
<div class='text'>
Watch
</div>
<i class='dropdown icon'></i>
<div class='menu'>
<a data-value="unwatch" class="item" data-remote="true" rel="nofollow" data-method="post" href="/Luo_Jing98358/lu-py/unwatch"><i class='iconfont icon-msg-read'></i>
不关注
</a><a data-value="watching" class="item" data-remote="true" rel="nofollow" data-method="post" href="/Luo_Jing98358/lu-py/watch"><i class='iconfont icon-msg-read'></i>
关注所有动态
</a><a data-value="releases_only" class="disabled item" data-remote="true" rel="nofollow" data-method="post" href="/Luo_Jing98358/lu-py/release_only_watch"><i class='iconfont icon-msg-read'></i>
仅关注版本发行动态
</a><a data-value="ignoring" class="item" data-remote="true" rel="nofollow" data-method="post" href="/Luo_Jing98358/lu-py/ignoring_watch"><i class='iconfont icon-msg-read'></i>
关注但不提醒动态
</a></div>
</div>
<style>
  .js-project-watch .text .iconfont {
    display: none; }
  .js-project-watch a, .js-project-watch a:hover {
    color: #000; }
  .js-project-watch .item > .iconfont {
    visibility: hidden;
    margin-left: -10px; }
  .js-project-watch .selected .iconfont {
    visibility: visible; }
  .js-project-watch .menu {
    margin-top: 4px !important; }
</style>
<script>
  $('.js-project-watch').dropdown({
    action: 'select',
    onChange: function(value, text, $selectedItem) {
      var type = value === 'unwatch' ? 'Watch' : 'Watching';
      $(this).children('.text').text(type);
      $(this).dropdown('set selected', value)
    }
  });
</script>

<a class="ui button action-social-count" title="1" href="/Luo_Jing98358/lu-py/watchers">1
</a></span>
<span class='basic buttons star-container ui'>
<a class="ui button unstar " sa_evt="clickStar" sa_location="其他" sa_url="" sa_repo_id="36419646" data-remote="true" rel="nofollow" data-method="post" href="/Luo_Jing98358/lu-py/unstar"><i class='iconfont icon-star-solid'></i>
Starred
</a><a class="ui button star " sa_evt="clickStar" sa_location="其他" sa_url="" sa_repo_id="36419646" data-remote="true" rel="nofollow" data-method="post" href="/Luo_Jing98358/lu-py/star"><i class='iconfont icon-star'></i>
Star
</a><a class="ui button action-social-count " title="0" href="/Luo_Jing98358/lu-py/stargazers">0
</a></span>
<span class='ui basic buttons fork-container' title=''>
<a id="fork-top-button" class="ui button fork " sa_evt="repoFork" sa_repo_id="36419646" sa_is_self="false" sa_is_member="false" href="#"><i class='iconfont icon-fork'></i>
Fork
</a><a class="ui button action-social-count " title="0" href="/Luo_Jing98358/lu-py/members">0
</a></span>
</div>
<h2 class='git-project-title mt-0 mb-0'>
<span class="project-title"><i class="project-icon iconfont icon-project-public" title="这是一个公开仓库"></i> <a title="罗敬" class="author" href="/Luo_Jing98358">罗敬</a>/<a title="lu-py" class="repository" target="" style="padding-bottom: 0px; margin-right: 4px" sa_evt="repoClick" sa_location="其他" sa_url="" sa_repo_id="36419646" href="/Luo_Jing98358/lu-py">lu-py</a></span><span class="project-badges"><style>
  .gitee-modal {
    width: 500px !important; }
</style>
</span>
<input type="hidden" name="project_title" id="project_title" value="罗敬/lu-py" />
</h2>
</div>
</div>
</div>
<div class='ui small modal long' id='modal-fork-project'>
<i class='icon-close iconfont close'></i>
<div class='header'>
Fork 仓库
</div>
<div class='content fork-project-content'>
<div class='fork-info-content'>
<div class='ui segment fork_project_loader'>
<div class='ui active inverted dimmer'>
<div class='ui text loader'>加载中</div>
</div>
</div>
</div>
</div>
<div class='actions fork-action d-flex-between hide'>
<div>
</div>
<div>
<a class='cancel'>&emsp;取消&emsp;</a>
<div class='ui disabled button orange ok'>&emsp;确认&emsp;</div>
</div>
</div>
</div>
<script>
  var title_import_url = "false";
  var title_post_url = "/Luo_Jing98358/lu-py/update_import";
  var title_fork_url = "/Luo_Jing98358/lu-py/sync_fork";
  var title_project_path = "lu-py";
  var title_p_name = "lu-py";
  var title_p_id= "36419646";
  var title_description = "python 相关脚本";
  var title_form_authenticity_token = "XafdEHpd/KVWAVSWJjMWQXGDPKG9qNpChNbvUJMc/TTVDVP5oj0RbM76woBTtFHMGwhVAFCfPqvrh/tIRbzw0g==";
  var watch_type = "unwatch";
  var checkFirst = false;
  
  $('.js-project-watch').dropdown('set selected', watch_type);
  $('.checkbox.sync-wiki').checkbox();
  $('.checkbox.sync-prune').checkbox();
  $('.checkbox.team-member-checkbox').checkbox();
</script>
<script>
  $(function () {
    // SemticUI 校验表单等地方要求直接return 值, 对异步支持非常不友好...
    // 从提交表单处 再用异步校验 ,控制是否提交
    var $modalFork = $('#modal-fork-project');
    var $okBtn = $modalFork.find('.ui.ok.button');
    var $currentTarget = null;
    var isSameProject = false;
  
    $('#fork-top-button, #fork-btm-button').on('click', function (e) {
      e.preventDefault();
      $modalFork.modal('show');
      setTimeout(function () {
        $.ajax({ url: '/Luo_Jing98358/lu-py/fork_project_info' }).done(function () {
          // 自定义错误消息模板,  inline : true 每个输入框后面都插入消息提示, 而非集中到一处提醒
          $.fn.form.settings.templates.prompt = function (errors) {
            return $('<div />').addClass('ui error message custom prompt label').html(errors[0]);
          };
          // 表单的内容是异步传输的js动态生成的....
          var $repoForm = $('#modal-fork-project .repo-form');
          $repoForm.form({
            on: 'change',
            inline: true,
            fields: {
              projectName: {
                identifier: 'project-name',
                rules: [
                  {
                    type: 'empty',
                    prompt: "仓库名不能为空"
                  },
                  {
                    type: 'regExp',
                    value: window.giteeRegex.projectName,
                    prompt: "仓库名只允许包含中文、字母、数字或者下划线(_)、中划线(-)、英文句号(.)、加号(+)，必须以字母、数字或者点(.)开头，不能以下划线/中划线结尾，且长度为2~191个字符"
                  },
                  {
                    type: 'maxLength[255]',
                    prompt: "仓库名只允许包含中文、字母、数字或者下划线(_)、中划线(-)、英文句号(.)、加号(+)，必须以字母、数字或者点(.)开头，不能以下划线/中划线结尾，且长度为2~191个字符"
                  }
                ]
              },
              projectPath: {
                identifier: 'project-path',
                rules: [
                  {
                    type: 'empty',
                    prompt: "路径不能为空"
                  },
                  {
                    type: 'regExp',
                    value: window.giteeRegex.projectPath,
                    prompt: "路径只允许包含字母、数字或者下划线(_)、中划线(-)、英文句号(.)，必须以字母、数字或者点(.)开头，且长度为2~191个字符"
                  }
                ]
              }
            }
          });
  
          $modalFork.find('.namespace-img-area.ui.checkbox').checkbox({
            onChecked: function () {
              $currentTarget = $(this).closest('.ui.checkbox');
              // 当前选中的空间
              isSameProject = $currentTarget[0].hasAttribute('data-any-same-projects');
              var conflictProjectName = $currentTarget.data('conflict-project-title');
              var conflictProjectUrl = $currentTarget.data('conflict-project-url');
              var conflictProjectNameSpacePath = $currentTarget.data('conflict-namespace');
              var conflictPathType = $currentTarget.find('.path-type').text();
              // fork目标
              var targetProjectName = $currentTarget.data('target-project-name');
              var targetProjectPath = $currentTarget.data('target-project-path');
              // 命名空间名称(@xxx)
              var conflictNameSpaceName = $currentTarget.find('.path-name').text();
              var $forkTargetNamespace = $('.fork-target-namespace-area');
              var $forkTargetNamespaceItem = $(this).closest('.fork-target-namespace-item')
              // 冲突 显示修改表单
              if (isSameProject) {
                //$forkTargetNamespace.addClass('same-name-editing');
                $('.fork-target-namespace-item').removeClass('same-name-editing')
                $forkTargetNamespaceItem.addClass('same-name-editing')
                $forkTargetNamespace
                  .find('.conflict-namespace-name')
                  .attr('href', `/${conflictProjectNameSpacePath}`)
                  .text(conflictNameSpaceName);
                $forkTargetNamespace
                  .find('.conflict-path')
                  .attr('href', `${conflictProjectUrl}`)
                  .text(`${conflictProjectNameSpacePath}/${targetProjectPath}`);
                $forkTargetNamespace
                  .find('.prefix-path')
                  .text(`${window.location.origin}/${conflictProjectNameSpacePath}/`);
                $forkTargetNamespace
                  .find('.conflict-path-type')
                  .text(conflictPathType.toLowerCase())
                var $nameInput = $forkTargetNamespace.find('[name="project-name"]');
                var $pathInput = $forkTargetNamespace.find('[name="project-path"]');
                $nameInput.val(targetProjectName);
                $pathInput.val(targetProjectPath);
                checkFirst = true
                // 立即校验一次
                asyncValidateForkRepoForm();
              } else {
                $('.fork-target-namespace-item').removeClass('same-name-editing')
                $forkTargetNamespaceItem.addClass('same-name-editing');
              }
              $okBtn.removeClass('disabled');
            }
          });
        });
      }, 500);
    });
    // 异步校验
    function asyncValidateForkRepoForm (successCallback) {
      var $repoForm = $('#modal-fork-project .same-name-editing .repo-form');
      var $forkTargetNamespace = $('.fork-target-namespace-area .same-name-editing');
      var $nameInput = $forkTargetNamespace.find('[name="project-name"]');
      var $pathInput = $forkTargetNamespace.find('[name="project-path"]');
      var name = $nameInput.val().trim();
      var path = $pathInput.val().trim();
      var namespace = $currentTarget ? $currentTarget.data('conflict-namespace') : '';
      if (!name || !path) return;
      $okBtn.addClass('loading');
      $.ajax('/projects/check_fork_form', {
        type: 'get',
        data: { project_name: name, project_path: path, target_namespaces: namespace },
        success: function (data) {
          if (data.status == 0) {
            successCallback && successCallback();
          } else if (data.status == -1 && Array.isArray(data.conflict_keys)) {
            if (!checkFirst) {
              data.conflict_keys.includes('name') && $repoForm.form('add prompt', 'project-name', "已存在相同仓库名");
              data.conflict_keys.includes('path') && $repoForm.form('add prompt', 'project-path', "已存在相同路径");
            } else {
              data.conflict_keys.includes('name') && data.new_name && $nameInput.val(data.new_name);
              data.conflict_keys.includes('path') && data.new_path && $pathInput.val(data.new_path);
            }
          } else {
            Flash.error("校验失败");
          }
          checkFirst = false
        },
        error: function (err) {
          Flash.error(err.responseJSON.message);
        },
        complete: function () {
          $okBtn.removeClass('loading');
          // 添加提示 弹窗变高后 刷新弹窗位置
          $modalFork.modal('refresh');
        }
      });
    }
    function forkSubmit () {
      $modalFork.modal('hide');
      // 构造一些 input 用于表单提交
      var $form = $('<form></form>');
      var $input = $('<input type="hidden" name="authenticity_token" />');
      var $inputCheck = $('<input type="hidden" name="members" />');
      var $inputCheck2 = $('<input type="hidden" name="namespace_path" />');
      var checkedPath = $('.checkbox.checked > input[name=namespace_path]').val();
      // fork存在冲突, 修改后的表单:
      if (isSameProject) {
        // 获取最新表单数据
        var $forkTargetNamespace = $('.fork-target-namespace-area .same-name-editing');
        var name = $forkTargetNamespace.find('[name="project-name"]').val().trim();
        var path = $forkTargetNamespace.find('[name="project-path"]').val().trim();
        var $projectName = $('<input type="hidden" name="name" />');
        var $projectPath = $('<input type="hidden" name="path" />');
        $projectName.val(name);
        $projectPath.val(path);
        $form.append($projectName);
        $form.append($projectPath);
      }
      $form.hide();
      $form.attr('method', 'post');
      $form.attr('action', '/' + checkedPath + '/fork_project/Luo_Jing98358%2Flu-py');
      $input.attr('value', $('meta[name="csrf-token"]').attr('content'));
      $inputCheck.attr('value', $('.checkbox.checked > input[name=members]').val());
      $inputCheck2.attr('value', checkedPath);
      $form.append($input);
      $form.append($inputCheck);
      $form.append($inputCheck2);
      $form.appendTo('body');
      $form.submit();
    }
    $modalFork.modal({
      transition: 'fade',
      closable: true,
      centered: false,
      observeChanges:true,
      onApprove: function () {
        // 存在同名冲突时, 需要修改仓库信息, 再进行校验同名
        // 判断当前选中的空间类型, 用于决定是否需要修改路径仓库名,验证表单
        if (isSameProject) {
          var $repoForm = $('#modal-fork-project .same-name-editing .repo-form');
          $repoForm.form('validate form');
          var isRepoInfoValid = $repoForm.form('is valid'); // 前端校验通过
          // 由于是form提交和ajax检测结合..., 防止意外篡改 提交前必定校验一次, 通过后自动submit
          if (isRepoInfoValid) {
            // SemticUI add prompt 自定义验证连续执行太快, 会消失掉重复再出现再消失.
            setTimeout(function () {
              asyncValidateForkRepoForm(function () {
                forkSubmit();
              });
            }, 200);
          } else {
            $repoForm.form('validate form');
          }
        } else {
          // 正常 frok
          forkSubmit();
        }
        return false;
      }
    });
    $modalFork.find('.close-button').on('click', function () {
      $modalFork.modal('hide');
    });
  });
</script>
<style>
  i.loading, .icon-sync.loading {
    -webkit-animation: icon-loading 1.2s linear infinite;
    animation: icon-loading 1.2s linear infinite;
  }
  .qrcode_cs {
    float: left;
  }
  .check-sync-wiki {
    float: left;
    height: 28px;
    line-height: 28px;
  }
  .sync-wiki-warn {
    color: #e28560;
  }
</style>

<div class='git-project-nav'>
<div class='ui container'>
<div class='ui secondary pointing menu'>
<a class="item active " href="/Luo_Jing98358/lu-py"><i class='iconfont icon-code'></i>
代码
</a><a class="item " href="/Luo_Jing98358/lu-py/issues"><i class='iconfont icon-task'></i>
Issues
<span class='ui mini circular label'>
0
</span>
</a><a class="item " href="/Luo_Jing98358/lu-py/pulls"><i class='iconfont icon-pull-request'></i>
Pull Requests
<span class='ui mini circular label'>
0
</span>
</a><a class="item " href="/Luo_Jing98358/lu-py/wikis"><i class='iconfont icon-wiki'></i>
Wiki
</a><a class="item  " href="/Luo_Jing98358/lu-py/graph/master"><i class='iconfont icon-statistics'></i>
统计
</a><a class="item " href="/Luo_Jing98358/lu-py/gitee_go"><i class='iconfont icon-workflow'></i>
流水线
</a><div class='item'>
<div class='ui pointing top right dropdown git-project-service'>
<div>
<i class='iconfont icon-service'></i>
服务
<i class='dropdown icon'></i>
</div>
<div class='menu' style='display:none'>
<a class="item" href="/Luo_Jing98358/lu-py/pages"><img src="/static/images/logo-en.svg" alt="Logo en" />
<div class='item-title'>
Gitee Pages
</div>
</a><a class="item" href="/Luo_Jing98358/lu-py/quality_analyses?platform=sonar_qube"><img src="https://cn-assets.gitee.com/assets/sonar_mini-5e1b54bb9f6c951d97fb778ef623afea.png" alt="Sonar mini" />
<div class='item-title'>
质量分析
</div>
</a><a class="item" href="/Luo_Jing98358/lu-py/gitee_scans"><img src="https://cn-assets.gitee.com/assets/giteescan-cd9ab4076bd751faf7e30888eb10f782.png" alt="Giteescan" />
<div class='item-title'>Gitee Scan</div>
</a><a class="item" target="_blank" href="https://gitee.com/help/articles/4193"><img src="https://cn-assets.gitee.com/assets/jenkins_for_gitee-554ec65c490d0f1f18de632c48acc4e7.png" alt="Jenkins for gitee" />
<div class='item-title'>
Jenkins for Gitee
</div>
</a><a class="item" target="_blank" href="https://gitee.com/help/articles/4318"><img src="https://cn-assets.gitee.com/assets/cloudbase-1197b95ea3398aff1df7fe17c65a6d42.png?20200925" alt="Cloudbase" />
<div class='item-title'>
腾讯云托管
</div>
</a><a class="item" target="_blank" href="https://gitee.com/help/articles/4330"><img src="https://cn-assets.gitee.com/assets/cloud_serverless-686cf926ced5d6d2f1d6e606d270b81e.png" alt="Cloud serverless" />
<div class='item-title'>
腾讯云 Serverless
</div>
</a><a class="item" href="/Luo_Jing98358/lu-py/open_sca"><img src="https://cn-assets.gitee.com/assets/open_sca/logo-9049ced662b2f9936b8001e6f9cc4952.png" alt="Logo" />
<div class='item-title'>
悬镜安全
</div>
</a><a class="item" target="_blank" href="https://help.gitee.com/devops/connect/Aliyun-SAE"><img src="https://cn-assets.gitee.com/assets/SAE-f3aa9366a1e2b7fff4747402eb8f10c3.png" alt="Sae" />
<div class='item-title'>
阿里云 SAE
</div>
</a><a class="item" id="update-codeblitz-link" target="_blank" href="https://codeblitz.cloud.alipay.com/gitee/Luo_Jing98358/lu-py/tree/master/zuoyebang/plug/MML2OMML.XSL"><img style="width:100px;margin-top:4px" src="https://cn-assets.gitee.com/assets/Codeblitz-8824e38875a106e16e29ff57ec977b08.png" alt="Codeblitz" />
<div class='item-title'>
Codeblitz
</div>
</a><button class='ui orange basic button quit-button' id='quiting-button'>
我知道了，不再自动展开
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
  $('.git-project-nav .ui.dropdown').dropdown({ action: 'nothing' });
  var gitee_reward_config = JSON.parse(localStorage.getItem('gitee_reward_config') || null) || false
  var $settingText = $('.setting-text')
  // 如果没有访问过
  if(!gitee_reward_config) $settingText.addClass('red-dot')
  $('.git-project-service').dropdown({
    on: 'click',
    action: 'nothing',
    onShow: function () {
      const branch = 'master'
      let newUrl = `https://codeblitz.cloud.alipay.com/gitee/Luo_Jing98358/lu-py/tree/`
      const url = decodeURIComponent(window.location.pathname);
      const startIndex = url.indexOf('master');
      if (startIndex !== -1) {
        newUrl = newUrl + url.substring(startIndex); // 从分支名开始截取
      }else{
        newUrl = newUrl + branch
      }
      const linkElement = document.getElementById("update-codeblitz-link");
      linkElement.setAttribute("href", newUrl);
    },
  })
</script>
<style>
  .git-project-nav i.checkmark.icon {
    color: green;
  }
  #quiting-button {
    display: none;
  }
  
  .git-project-nav .dropdown .menu.hidden:after {
    visibility: hidden !important;
  }
</style>
<script>
  isSignIn = true
  isClickGuide = true
  $('#git-versions.dropdown').dropdown();
  $.ajax({
    url:"/Luo_Jing98358/lu-py/access/add_access_log",
    type:"GET"
  });
  $('#quiting-button').on('click',function() {
    $('.git-project-service').click();
    if (isSignIn) {
      $.post("/projects/set_service_guide")
    }
    $.cookie("Serve_State", true, { expires: 3650, path: '/'})
    $('#quiting-button').hide();
  });
  if (!(isClickGuide || $.cookie("Serve_State") == 'true')) {
    $('.git-project-service').click()
    $('#quiting-button').show()
  }
</script>

</div>
<div class='ui container'>

<div class='git-project-content-wrapper'>

<div class='ui grid' id='project-wrapper'>
<div class='sixteen wide column' id='git-project-container'>
<div class='git-project-content' id='git-project-content'>
<div class='row'>
<div class='git-project-desc-wrapper'>
<script>
  $('.git-project-desc-wrapper .ui.dropdown').dropdown();
  if (false) {
    gon.project_new_blob_path = "/Luo_Jing98358/lu-py/new/master/zuoyebang/plug/MML2OMML.XSL"
    bindShowModal({
      el: $('.no-license .project-license__create'),
      complete: function(data, modal) {
        if (!data.haveNoChoice && !data.data) {
          Flash.show('请选择一项开源许可证')
        } else {
          location.href = gon.project_new_blob_path + '?license=' + data.data
        }
      },
      skip: function () {
        location.href = gon.project_new_blob_path + '?license'
      }
    });
  }
  
  $(".project-admin-action-box .reject").click(function() {
    var reason = $('[name=review-reject-reason]').val();
    if (!reason) {
      Flash.error('请选择不通过理由')
      return
    }
    $.ajax({
      type: 'POST',
      url: "/admin/shumei_content/shumei_check/reject_project_public",
      data: {
        reason: reason,
        status: 'rejected',
        project_id: 36419646
      },
      success: function(result){
        if(result.status == 'success'){
          window.location.reload();
        }else{
          Flash.error(result.message)
        }
      }
    })
  })
  
  $(".project-admin-action-box .approve").click(function(){
  
    $.ajax({
      type: 'POST',
      url: "/admin/shumei_content/shumei_check/reject_project_public",
      data: {
        status: 'approved',
        project_id: 36419646
      },
      success: function(result){
        if(result.status == 'success'){
          window.location.reload();
        }else{
          Flash.error(result.message)
        }
      }
    })
  })
  
  $(".project-admin-action-box .waiting").click(function(){
  
    $.ajax({
      type: 'POST',
      url: "/admin/shumei_content/shumei_check/reject_project_public",
      data: {
        status: 'waiting',
        project_id: 36419646
      },
      success: function(result){
        if(result.status == 'success'){
          window.location.reload();
        }else{
          Flash.error(result.message)
        }
      }
    })
  })
  
  $('i.help.circle.icon').popup({
    popup: '.no-license .ui.popup',
    position: 'right center'
  });
  
  $('#remove-no-license-message').on('click', function() {
    $.cookie("skip_repo_no_license_message_36419646", 'hide', { expires: 365 });
    $('#user-no-license-message').hide();
    return;
  });
</script>
</div>

</div>
<div class='git-project-bread' id='git-project-bread'>
<div class='ui horizontal list mr-1'>
<div class='item git-project-branch-item'>
<input type="hidden" name="path" id="path" value="zuoyebang/plug/MML2OMML.XSL" />
<div class='ui top left pointing dropdown gradient button dropdown-has-tabs' id='git-project-branch'>
<input type="hidden" name="ref" id="ref" value="master" />
<div class='default text'>
master
</div>
<i class='dropdown icon'></i>
<div class='menu'>
<div class='ui left icon input'>
<i class='iconfont icon-search dropdown-search-icon'></i>
<input class='search-branch' placeholder='搜索分支' type='text'>
</div>
<div class='tab-menu project-branch-tab-menu'>
<div class='tab-menu-actions d-align-center'>
<div class='tab-menu-action' data-tab='branches'>
<a class="ui link button" href="/Luo_Jing98358/lu-py/branches">管理</a>
</div>
<div class='tab-menu-action' data-tab='tags'>
<a class="ui link button" href="/Luo_Jing98358/lu-py/tags">管理</a>
</div>
</div>
<div class='tab-menu-item' data-placeholder='搜索分支' data-tab='branches'>
分支 (1)
</div>
</div>
<div class='tab scrolling menu' data-tab='branches' id='branches_panel'>
<div data-value="master" class="item"><span>master</span></div>
</div>
</div>
</div>
<style>
  .iconfont.icon-shieldlock {
    color: #8c92a4;
  }
  .dropdown-search-icon {
    position: absolute;
    top: 8px;
    left: 11px;
  }
</style>
<style>
  #git-project-branch .project-branch-tab-menu {
    width: 400px !important;
    margin: 0 16px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    border-bottom: 1px solid #dfe3e9 !important; }
  #git-project-branch .tab-menu-actions {
    position: absolute;
    right: 0px !important;
    bottom: 0.357em; }
  #git-project-branch .tab-menu-action {
    position: relative !important;
    right: 0px !important;
    bottom: 0px !important; }
  #git-project-branch .menu::after {
    display: none !important; }
</style>
<script>
  var $branchesDropdown = $('#branches_panel');
  var $tagsDropdown = $('#tags_panel');
  var $searchNameInput = $('.search-branch');
  var concurrentRequestLock = false;
  var filterXSS = window.filterXSS;
  var search_text = "";
  var branch_page_number = 1;
  var branch_total_pager = Math.ceil(1 / 20) || 1
  
  var flag_is_loading = false;
  var flag_page_number = 1;
  var flag_total_pager = Math.ceil(0 / 20) || 1
  
  $branchesDropdown.scroll(function() {
    var branchesPanel = document.getElementById('branches_panel');
    var numOfBranches = $branchesDropdown.children().length;
    if (branchesPanel.clientHeight + branchesPanel.scrollTop + 37 > branchesPanel.scrollHeight && numOfBranches < 1) {
      debounceLoadMoreBranches.call();
    }
  });
  function resetFlagVal() {
    flag_is_loading = false;
    flag_page_number = 1;
    flag_total_pager = 1;
  
    concurrentRequestLock = false
    search_text = "";
    branch_page_number = 1;
    branch_total_pager = 1
  }
  $searchNameInput.on('input', window.globalUtils.debouce(function (e) {
    resetFlagVal()
    var $currentTab = $('.tab-menu-action.active');
    var numOfBranches = $branchesDropdown.children().length;
    var searchWord = $searchNameInput.val().trim();
    search_text = searchWord
    if($currentTab.data('tab') === 'branches') {
      if (searchWord !== "") {
        loadData(searchWord,1);
      } else {
        loadData();
      }
    }
    var numOfTags = $tagsDropdown.children().length;
    if($currentTab.data('tab') === 'tags') {
      if (searchWord !== "") {
        fetchTags(searchWord,1);
      } else {
        fetchTags();
      }
    }
  }, 500));
  
  function toggleNoResultView($popPanel) {
    let no_data_html= `<div class='mt-1 mb-1 d-flex-center'> <span>暂无数据</span> </div>`
    $popPanel.append(no_data_html)
  }
  var debounceLoadMoreBranches = window.globalUtils.debouce(function () {
    if (concurrentRequestLock) return;
    branch_page_number += 1;
    if (branch_page_number > branch_total_pager) return;
    loadData(search_text, branch_page_number);
  }, 350);
  
  function loadData(search, page) {
    if (concurrentRequestLock) { return; }
    concurrentRequestLock = true;
  
    var searchParams = search || "";
    var pageParams = page || 1;
    $.ajax({
      url: "/" + gon.user_project + "/branches/names.json",
      type: 'GET',
      data: {
        search: searchParams,
        page: pageParams,
      },
      dataType: 'json',
      success: function (data) {
        branch_total_pager = data.total_pages;
        var html = '';
  
        if (pageParams === 1) {
          $branchesDropdown.empty();
        }
        data.branches.forEach(function (branch) {
          var protectRule = '';
          var branchName = filterXSS(branch.name);
          if(branch.branch_type.value === 1) {
            var rule = filterXSS(branch.protection_rule.wildcard);
            protectRule = `<i
                class="iconfont icon-shieldlock protected-branch-popup"
                data-title="受保护分支"
                data-content='保护规则： ${rule}'
              >
              </i>`
          }
          html += `<div data-value='${branchName}' class="item">
                    <span>${branchName}</span> ${protectRule}
                    </div>`
        });
        $branchesDropdown.append(html);
        $('.protected-branch-popup').popup()
        if (pageParams === 1 && data.count === 0) {
          toggleNoResultView($branchesDropdown);
        }
      },
      complete: function () {
        concurrentRequestLock = false;
      }
    });
  }
  
  
  
  $tagsDropdown.scroll(function() {
    var tagsPanel = document.getElementById('tags_panel');
    var numOfTags = $tagsDropdown.children().length;
    if (tagsPanel.clientHeight + tagsPanel.scrollTop + 37 > tagsPanel.scrollHeight && numOfTags < 0) {
      debounceLoadMore.call();
    }
  });
  var debounceLoadMore = window.globalUtils.debouce(function () {
    if (flag_is_loading) return;
    flag_page_number += 1;
    if (flag_page_number > flag_total_pager) return;
    fetchTags(search_text, flag_page_number);
  }, 350);
  
  function fetchTags(search, page) {
    var searchParams = search || "";
    var pageParams = page || 1;
  
    if (flag_is_loading) return;
    flag_is_loading = true;
  
    $.ajax({
      url: "/" + gon.user_project + "/tags/names.json",
      data: {
        search: searchParams,
        page: pageParams,
      },
      type: "GET",
      xhrFields: {
        withCredentials: true,
      },
      success: function (data) {
        flag_total_pager = data.total_pages;
        if (pageParams === 1) {
          $tagsDropdown.html('');
        }
        data.tags.forEach((tag) => {
          const itemDiv = document.createElement('div');
          itemDiv.classList.add('item');
          itemDiv.setAttribute('data-value', tag.name);
          itemDiv.innerText = window.filterXSS(tag.name);
          $tagsDropdown.append(itemDiv)
        });
        if (pageParams === 1 && data.count === 0) {
          toggleNoResultView($tagsDropdown);
        }
      },
      error: function () {
      },
      complete: function () {
        flag_is_loading = false;
      },
    });
  }
  $('.project-branch-tab-menu').on('click','.tab-menu-item', function (e) {
    var $currentTab = $(this).data('tab')
    if($currentTab === 'branches') {
      $searchNameInput.val('')
      search_text = '';
      loadData()
    }
    if($currentTab === 'tags') {
      $searchNameInput.val('')
      search_text = '';
      fetchTags();
    }
  })
</script>

<script>
  $(function () {
    Gitee.initTabsInDropdown($('#git-project-branch').dropdown({
      fullTextSearch: true,
      selectOnKeydown: false,
      action: function (text,value,el) {
        var oItemOrInitObject = el[0] || el
        var isNotSelect = oItemOrInitObject.dataset.tab && oItemOrInitObject.dataset.tab === 'branches'
        if(isNotSelect){
          console.warn("You didn't choose a branch")
          return
        }
        var path = $('#path').val();
        var href = ['/Luo_Jing98358/lu-py/tree', encodeURIComponent(value), path].join('/');
        window.location.href = href;
        return true
      },
      onNoResults: function (searchTerm) {
        //未找到结果
        return true
      },
    }));
    $('.protected-branch-popup').popup()
  })
</script>

</div>
</div>
<div class='git-project-right-actions pull-right'>
<div class='ui orange button' id='btn-dl-or-clone'>
克隆/下载
<i class='dropdown icon'></i>
</div>
<div class='ui small modal' id='git-project-download-panel'>
<i class='iconfont icon-close close'></i>
<div class='header'>
克隆/下载
</div>
<div class='content'>
<div class='ui secondary pointing menu mb-2 menu-container'>
<a class='item active' data-text='' data-type='http' data-url='https://gitee.com/Luo_Jing98358/lu-py.git'>HTTPS</a>
<a class='item' data-text='' data-type='ssh' data-url='git@gitee.com:Luo_Jing98358/lu-py.git'>SSH</a>
<a class='item' data-text="该仓库未启用SVN访问，请仓库管理员前往【&lt;a target='_blank' href=/Luo_Jing98358/lu-py/settings#function&gt;仓库设置&lt;/a&gt;】开启。" data-type='svn' data-url=''>SVN</a>
<a class='item' data-text="该仓库未启用SVN访问，请仓库管理员前往【&lt;a target='_blank' href=/Luo_Jing98358/lu-py/settings#function&gt;仓库设置&lt;/a&gt;】开启。" data-type='svn_ssh' data-url=''>SVN+SSH</a>
<a class="button-box ui basic orange button" sa_evt="repoDownload" sa_repo_id="36419646" sa_is_self="false" sa_is_member="false" href="/Luo_Jing98358/lu-py/repository/archive/master.zip"><i class='icon download'></i>
下载ZIP
</a></div>
<div class='ui fluid right labeled small input download-url-panel mb-2'>
<input type="text" name="project_url_clone" id="project_url_clone" value="https://gitee.com/Luo_Jing98358/lu-py.git" onclick="focus();select()" readonly="readonly" />
<div class='ui basic label copy-icon-box'>
<i class='icon iconfont icon-clone mr-0 btn-copy-clone' data-clipboard-target='#project_url_clone' id='btn-copy-project_clone_url1'></i>
</div>
</div>
<div class='tip-box mb-2'>
提示
</div>
<div class='mb-1 clone-url-title'>
下载代码请复制以下命令到终端执行
</div>
<div class='ui fluid right labeled small input download-url-panel mb-2'>
<input type="text" name="project_clone_url" id="project_clone_url" value="https://gitee.com/Luo_Jing98358/lu-py.git" onclick="focus();select()" readonly="readonly" />
<div class='ui basic label copy-icon-box'>
<i class='icon iconfont icon-clone mr-0 btn-copy-clone' data-clipboard-target='#project_clone_url' id='btn-copy-project_clone_url'></i>
</div>
</div>
<div class='ui fluid right labeled warning-text forbid-warning-text'>

</div>
<div class='http-ssh-item mb-2'>
<div>
为确保你提交的代码身份被 Gitee 正确识别，请执行以下命令完成配置
</div>
<div class='textarea-box mt-2'>
<textarea class='textarea-content-box' id='global-config-clone' readonly>git config --global user.name 'Admin' &#10git config --global user.email 'juhagen@qq.com'</textarea>
<i class='icon iconfont icon-clone mr-2 btn-copy-clone text-dark' data-clipboard-target='#global-config-clone' id='btn-copy-global-config'></i>
</div>
</div>
<div class='ssh-item item-panel-box'>
<div class='mb-2'>
初次使用 SSH 协议进行代码克隆、推送等操作时，需按下述提示完成 SSH 配置
</div>
<div class='mb-1'>
<span>1</span>
生成 RSA 密钥
</div>
<div class='ui fluid right labeled small input mb-2'>
<input type="text" name="ssh_keygen_clone" id="ssh_keygen_clone" value="ssh-keygen -t rsa" onclick="focus();select()" readonly="readonly" />
<div class='ui basic label copy-icon-box'>
<i class='icon iconfont icon-clone mr-0 btn-copy-clone' data-clipboard-target='#ssh_keygen_clone' id='btn-copy-ssh_keygen'></i>
</div>
</div>
<div class='mb-1'>
<span>2</span>
获取 RSA 公钥内容，并配置到<a href='/profile/sshkeys' target="_blank"> SSH公钥 </a> 中
</div>
<div class='ui fluid right labeled small input mb-2'>
<input type="text" name="id_rsa_clone" id="id_rsa_clone" value="cat ~/.ssh/id_rsa.pub" onclick="focus();select()" readonly="readonly" />
<div class='ui basic label copy-icon-box'>
<i class='icon iconfont icon-clone mr-0 btn-copy-clone' data-clipboard-target='#id_rsa_clone' id='btn-copy-d_rsa'></i>
</div>
</div>
</div>
<div class='svn-item item-panel-box'>
<div class='mb-1 mt-2'>
在 Gitee 上使用 SVN，请访问<a href='https://help.gitee.com/enterprise/code-manage/%E4%BB%A3%E7%A0%81%E6%89%98%E7%AE%A1/%E4%BB%A3%E7%A0%81%E4%BB%93%E5%BA%93/Gitee%20SVN%E6%94%AF%E6%8C%81' target="_blank"> 使用指南 </a>
</div>
</div>
<div class='http-item item-panel-box'>
<div class='mb-2 mt-2'>
使用 HTTPS 协议时，命令行会出现如下账号密码验证步骤。基于安全考虑，Gitee 建议<a href='/profile/personal_access_tokens' target="_blank"> 配置并使用私人令牌 </a>替代登录密码进行克隆、推送等操作
</div>
<div>
Username for 'https://gitee.com': weiweimaibing_juhagen
</div>
<div class='mb-1'>
<span>
Password for 'https://weiweimaibing_juhagen@gitee.com':
</span>
<span>
私人令牌
</span>
</div>
</div>
</div>
</div>
<style>
  #git-project-download-panel {
    top: 90px !important; }
    #git-project-download-panel input {
      color: #40485b !important; }
    #git-project-download-panel .textarea-box {
      width: 100%;
      height: 60px;
      color: #9d9d9d;
      border-radius: 2px;
      background-color: #F5F5F5 !important;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center; }
    #git-project-download-panel .menu-container {
      font-weight: bold;
      border-color: rgba(0, 0, 0, 0.1) !important;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important; }
      #git-project-download-panel .menu-container .item {
        padding: 7px 12px !important; }
    #git-project-download-panel .hr-item {
      color: rgba(39, 41, 43, 0.15) !important; }
    #git-project-download-panel .textarea-content-box {
      width: 100%;
      height: 60px;
      resize: none;
      border: 0px !important;
      background-color: #F5F5F5 !important;
      color: #40485b !important; }
    #git-project-download-panel .btn-copy-clone {
      cursor: pointer;
      color: rgba(0, 0, 0, 0.87) !important; }
    #git-project-download-panel .copy-icon-box {
      background-color: #F5F5F5 !important;
      border-left: 0px !important; }
    #git-project-download-panel .button-box {
      border: 0px !important;
      float: right !important;
      padding-right: 0 !important; }
    #git-project-download-panel .tip-box {
      border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
      padding-bottom: 4px;
      font-weight: 700; }
    #git-project-download-panel .popup-container {
      padding: 8px 12px 4px 12px;
      text-align: center;
      font-size: 14px; }
      #git-project-download-panel .popup-container .ok {
        margin: 12px auto;
        width: 25%;
        min-width: 125px;
        display: block; }
      #git-project-download-panel .popup-container .cancel {
        margin-left: 0; }
</style>
<script>
  $(function () {
    var $btnClone = $('#btn-dl-or-clone')
    var $modalDownload = $('#git-project-download-panel');
    var $input = $('#project_clone_url')
    var $inputUrl = $('#project_url_clone')
    var cloneUrlTitle= $('.clone-url-title')
  
    $('#btn-dl-or-clone').on('click', function (e) {
      e.preventDefault();
      $modalDownload.modal('show');
    })
  
    $modalDownload.find('.menu > .item').on('click', function(e) {
      var $item = $(this).addClass('active');
      $item.siblings().removeClass('active');
      var dataUrl = $item.attr('data-url');
      var cloneUrl = $item.attr('data-url');
      var dataType = $item.attr('data-type')
      var cloneToLocal = '下载代码请复制以下命令到终端执行'
      if(dataType=='http'){
        $modalDownload.find('.http-item').show();
        $('.content > .item-panel-box:not(.http-item)').hide();
        $modalDownload.find('.http-ssh-item').show();
        cloneUrl = 'git clone '+dataUrl
      }else if(dataType=='ssh'){
        $modalDownload.find('.ssh-item').show();
        $('.content > .item-panel-box:not(.ssh-item)').hide();
        $modalDownload.find('.http-ssh-item').show();
        cloneUrl = 'git clone '+dataUrl
      }else if(dataType=='svn') {
        $('.content > .item-panel-box:not(.svn-item)').hide();
        $modalDownload.find('.svn-item').show();
        $modalDownload.find('.http-ssh-item').hide();
        cloneUrl = 'svn checkout '+dataUrl
      }else {
        $('.content > .item-panel-box:not(.svn-item)').hide();
        $modalDownload.find('.svn-item').show();
        $modalDownload.find('.http-ssh-item').hide();
        cloneUrl = 'svn checkout '+dataUrl
      }
      if (dataUrl) {
        $modalDownload.find('.download-url-panel').show();
        $input.val(cloneUrl);
        $inputUrl.val(dataUrl)
        cloneUrlTitle.show();
        $modalDownload.find('.forbid-warning-text').html('');
      } else {
        $modalDownload.find('.download-url-panel').hide();
        //$modalDownload.find('.svn-item').hide();
        cloneUrlTitle.hide();
        $modalDownload.find('.forbid-warning-text').html($item.attr('data-text') || '');
      }
      $.cookie('remote_way', $item.attr('data-type'), { expires: 365, path: '/' });
    }).filter('[data-type="' + ($.cookie('remote_way') || 'http') + '"]').trigger('click');
  
    $('.btn-copy-clone').popup({
      content: '点击复制',
    }).on('click', function(e) {
      e.stopPropagation();
      return false;
    }).each(function(_, btnCopy) {
      var $btnCopy = $(btnCopy);
      new Clipboard(btnCopy).on('success', function() {
        $btnCopy.popup('destroy').popup({
          content: '已复制',
          on: 'manual'
        }).popup('show');
        setTimeout(function() {
          $btnCopy.popup('destroy').popup({
            content: '点击复制'
          });
        }, 2000);
      });
    });
    var $downloadBtn= $('.unlogin-download-btn')
    var $popupContainer = $('.popup-container')
    $downloadBtn.popup({
      popup : $('.custom.popup'),
      position   : 'bottom right',
    }).on('click', function(e) {
      $downloadBtn.popup('destroy').popup({
        popup : $('.custom.popup'),
        on: 'manual',
        position   : 'bottom right',
      }).popup('show');
      setTimeout(function() {
        $downloadBtn.popup('hide');
      }, 2000);
  
    })
  })
</script>

</div>
<div class='d-inline pull-right' id='git-project-root-actions'>
<div class='ui horizontal list repo-action-list d-flex d-align-center repo-action-list-right'>
<div class='item search-box-container'>
<div class='ui icon input search-input' id='search-box'>
<input class='search-file-name' id='search-file-name' maxlength='40' placeholder='搜索文件' type='text'>
</div>
<a class='d-flex d-align-center' id='search-file-btn'>
<span class='iconify' data-icon='gitee:search' style='font-size: 16px;color:#979CAC;margin-right:10px'></span>
</a>
<div class='filter-file-container' style='display: none;'></div>
</div>
<script>
  $('#git-tree-file').dropdown({
    action: 'hide',
    onHide: function () {
      $('.plus-box').removeClass('click-active')
    },
    onShow: function () {
      $('.plus-box').addClass('click-active')
    }
  });
  $('.disabled-upload-readonly').popup({
    content: "只读目录不允许上传文件",
    className: {
      popup: 'ui popup',
    },
    position: 'bottom center',
  })
  $('.disabled-create-folder').popup({
    content: "只读目录不允许创建目录",
    className: {
      popup: 'ui popup',
    },
    position: 'bottom center',
  })
  $('.disabled-create-file').popup({
    content: "只读目录不允许创建文件",
    className: {
      popup: 'ui popup',
    },
    position: 'bottom center',
  })
  $('.disabled-create-submodule').popup({
    content: "只读目录不允许创建子模块",
    className: {
      popup: 'ui popup',
    },
    position: 'bottom center',
  })
  $('.disabled-upload-readonly, .disabled-create-folder, .disabled-create-file, .disabled-create-submodule').click(function() {
    return false
  })
</script>
<style>
  .disabled-upload-readonly, .disabled-create-file, .disabled-create-folder, .disabled-create-submodule {
    background-color: #dcddde !important;
    color: rgba(0, 0, 0, 0.4) !important;
    opacity: 0.3 !important;
    background-image: none !important;
    -webkit-box-shadow: none !important;
            box-shadow: none !important; }
</style>

<div class='item toschina-content__hidden webIDE-box' data-content='Web IDE'>
<a class="ui d-flex d-align-center webide ml-1" target="_blank" href="/-/ide/project/Luo_Jing98358/lu-py/edit/master/-/zuoyebang/plug/MML2OMML.XSL"><span class='iconify' data-icon='gitee:computer' style='font-size: 16px;color:#979CAC;margin-right:12px'></span>
</a></div>
</div>
<script>
  $('.webIDE-box').popup()
</script>
<script src="https://cn-assets.gitee.com/assets/file_search/app-7488efdce7782c80c4936145b910d07e.js"></script>

</div>
<div class='breadcrumb_path path-breadcrumb-contrainer' id='git-project-breadcrumb'>
<div class='ui breadcrumb path project-path-breadcrumb' id='path-breadcrumb'>
<a data-direction="back" class="section repo-name" style="font-weight: bold" href="/Luo_Jing98358/lu-py/tree/master">lu-py
</a><div class='divider'>
/
</div>
<strong>
<a data-direction="back" class="section" href="/Luo_Jing98358/lu-py/tree/master/zuoyebang"><span class='cblue'>
zuoyebang
</span>
</a></strong>
<div class='divider'>
/
</div>
<strong>
<a data-direction="back" class="section" href="/Luo_Jing98358/lu-py/tree/master/zuoyebang/plug"><span class='cblue'>
plug
</span>
</a></strong>
<div class='divider'>
/
</div>
<strong>
MML2OMML.XSL
</strong>
<i class='iconfont icon-clone' data-clipboard-text='zuoyebang/plug/MML2OMML.XSL' id='btn-copy-file-path'></i>
</div>
<style>
  #btn-copy-file-path {
    vertical-align: middle;
    cursor: pointer;
  }
</style>
<script>
  $btnCopy = $('#btn-copy-file-path')
  $btnCopy.popup({
    content: '复制路径'
  })
  
  if ($btnCopy[0]) {
    new Clipboard($btnCopy[0]).on('success', function() {
      $btnCopy.popup('destroy').popup({
        content: '已复制',
        on: 'manual'
      }).popup('show');
      setTimeout(function () {
        $btnCopy.popup('destroy').popup({
          content: '复制路径'
        });
      }, 2000)
    });
  }
</script>


</div>
<div class='ui horizontal list repo-action-list branches-tags' style='display: none;'>
<div class='item'>
<a class="ui blank button" href="/Luo_Jing98358/lu-py/branches"><i class='iconfont icon-branches'></i>
分支 1
</a></div>
<div class='item mr-3'>
<a class="ui blank button" href="/Luo_Jing98358/lu-py/tags"><i class='iconfont icon-tag'></i>
标签 0
</a></div>
</div>
</div>
<script src="https://cn-assets.gitee.com/webpacks/parse_blob_form_scheme-c196873aa4bc8cd09e53.bundle.js"></script>
<script>
  if(window.gon.locale == 'en')
    $('.branches-tags').css('margin-top', '12px')
   // 仓库页面切换路径时: 刷新 yaml 错误检查
  $(window).on('pjax-complete:file-show', function () {
    window.parseBlobFormScheme && window.parseBlobFormScheme($('.js-blob-data').data('blob'));
  });
</script>

<style>
  .ui.dropdown .menu > .header {
    text-transform: none; }
</style>
<script>
  $(function () {
    var $tip = $('#apk-download-tip');
    if (!$tip.length) {
      return;
    }
    $tip.find('.btn-close').on('click', function () {
      $tip.hide();
    });
  });
  (function(){
    function pathAutoRender() {
      var $parent = $('#git-project-bread'),
          $child = $('#git-project-bread').children('.ui.horizontal.list'),
          mainWidth = 0;
      $child.each(function (i,item) {
        mainWidth += $(item).width()
      });
      $('.breadcrumb.path.fork-path').remove();
      if (mainWidth > 995) {
        $('#path-breadcrumb').hide();
        $parent.append('<div class="ui breadcrumb path fork-path">' + $('#path-breadcrumb').html() + '<div/>')
      } else {
        $('#path-breadcrumb').show();
      }
    }
    window.pathAutoRender = pathAutoRender;
    pathAutoRender();
  })();
</script>

<div class='row column tree-holder' id='tree-holder'>
<div class='tree-content-holder' id='tree-content-holder'>
<div class='file_holder'>
<div class='file_title'>
<div class='blob-header-title'>
<div class='blob-description'>
<i class="iconfont icon-file"></i>
<span class='file_name' title='MML2OMML.XSL'>
MML2OMML.XSL
</span>
<small>148.15 KB</small>
</div>
<div class='options'><div class='js-code-parsing code-parsing-btn ui pointing right top dropdown'>
<img class='' height='37' src='/static/images/ma_icon.svg' width='33'>
<div class='btn'>
<span>马建仓 AI 助手</span>
<i class='dropdown icon'></i>
</div>
<div class='menu ai-code-dropdown-box pt-1 pb-1'>
<span class='item' data-text='代码解读' data-value='parsing'>代码解读</span>
<span class='item' data-text='代码找茬' data-value='analysis'>代码找茬</span>
<span class='item' data-text='代码优化' data-value='optimize'>代码优化</span>
</div>
</div>
<div class='ui mini buttons basic'>
<textarea name="blob_raw" id="blob_raw" style="display:none;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;&#x000A;&lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:mml=&quot;http://www.w3.org/1998/Math/MathML&quot;&#x000A;	xmlns:m=&quot;http://schemas.openxmlformats.org/officeDocument/2006/math&quot;&gt;&#x000A;  &lt;xsl:output method=&quot;xml&quot; encoding=&quot;UTF-8&quot; /&gt;&#x000A;&#x000A;&#x000A;  &lt;xsl:variable name=&quot;StrUCAlphabet&quot;&gt;ABCDEFGHIJKLMNOPQRSTUVWXYZ&lt;/xsl:variable&gt;&#x000A;  &lt;xsl:variable name=&quot;StrLCAlphabet&quot;&gt;abcdefghijklmnopqrstuvwxyz&lt;/xsl:variable&gt;&#x000A;&#x000A;  &lt;!-- %%Template: match *&#x000A;&#x000A;		The catch all template, just passes through &#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;*&quot;&gt;&#x000A;    &lt;xsl:apply-templates select=&quot;*&quot; /&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: match *&#x000A;&#x000A;		Another catch all template, just passes through &#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;/&quot;&gt;&#x000A;    &lt;m:oMath&gt;&#x000A;      &lt;xsl:apply-templates select=&quot;*&quot; /&gt;&#x000A;    &lt;/m:oMath&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: SReplace&#x000A;&#x000A;		Replace all occurences of sOrig in sInput with sReplacement&#x000A;		and return the resulting string. --&gt;&#x000A;  &lt;xsl:template name=&quot;SReplace&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;sInput&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;sOrig&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;sReplacement&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;not(contains($sInput, $sOrig))&quot;&gt;&#x000A;        &lt;xsl:value-of select=&quot;$sInput&quot; /&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:variable name=&quot;sBefore&quot; select=&quot;substring-before($sInput, $sOrig)&quot; /&gt;&#x000A;        &lt;xsl:variable name=&quot;sAfter&quot; select=&quot;substring-after($sInput, $sOrig)&quot; /&gt;&#x000A;        &lt;xsl:variable name=&quot;sAfterProcessed&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;SReplace&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;sInput&quot; select=&quot;$sAfter&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;sOrig&quot; select=&quot;$sOrig&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;sReplacement&quot; select=&quot;$sReplacement&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;&#x000A;        &lt;xsl:value-of select=&quot;concat($sBefore, concat($sReplacement, $sAfterProcessed))&quot; /&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: OutputText&#x000A;&#x000A;		Post processing on the string given and otherwise do&#x000A;		a xsl:value-of on it --&gt;&#x000A;  &lt;xsl:template name=&quot;OutputText&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;sInput&quot; /&gt;&#x000A;&#x000A;    &lt;!-- Add local variable as you add new post processing tasks --&gt;&#x000A;&#x000A;    &lt;!-- 1. Remove any unwanted characters --&gt;&#x000A;    &lt;xsl:variable name=&quot;sCharStrip&quot;&gt;&#x000A;      &lt;xsl:value-of select=&quot;translate($sInput, &#39;&amp;#x2062;&amp;#x200B;&#39;, &#39;&#39;)&quot; /&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;!-- 2. Replace any characters as needed --&gt;&#x000A;    &lt;!--	Replace &amp;#x2A75; &lt;-&gt; ==			 --&gt;&#x000A;    &lt;xsl:variable name=&quot;sCharReplace&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;SReplace&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;sInput&quot; select=&quot;$sCharStrip&quot; /&gt;&#x000A;        &lt;xsl:with-param name=&quot;sOrig&quot; select=&quot;&#39;&amp;#x2A75;&#39;&quot; /&gt;&#x000A;        &lt;xsl:with-param name=&quot;sReplacement&quot; select=&quot;&#39;==&#39;&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;!-- Replace &amp;#xa0; (non-breaking space) with &#39; &#39; --&gt;&#x000A;    &lt;xsl:variable name=&quot;sCharReplaceFinal&quot; select=&quot;translate($sCharReplace, &#39;&amp;#xa0;&#39;, &#39; &#39;)&quot; /&gt;&#x000A;&#x000A;    &lt;!-- Finally, return the last value --&gt;&#x000A;    &lt;xsl:value-of select=&quot;$sCharReplaceFinal&quot; /&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- Template that determines whether or the given node &#x000A;	     ndCur is a token element that doesn&#39;t have an mglyph as &#x000A;			 a child.&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;FNonGlyphToken&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$ndCur/self::mml:mi[not(child::mml:mglyph)] | &#x000A;	                     $ndCur/self::mml:mn[not(child::mml:mglyph)] | &#x000A;	                     $ndCur/self::mml:mo[not(child::mml:mglyph)] | &#x000A;	                     $ndCur/self::mml:ms[not(child::mml:mglyph)] |&#x000A;                       $ndCur/self::mml:mtext[not(child::mml:mglyph)]&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- Template used to determine if the current token element (ndCur) is the beginning of a run. &#x000A;			 A token element is the beginning of if:&#x000A;			 &#x000A;			 the count of preceding elements is 0 &#x000A;			 or &#x000A;			 the directory preceding element is not a non-glyph token.&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;FStartOfRun&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:variable name=&quot;fPrecSibNonGlyphToken&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;FNonGlyphToken&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndCur/preceding-sibling::*[1]&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;count($ndCur/preceding-sibling::*)=0 &#x000A;											or $fPrecSibNonGlyphToken=0&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- Template that determines if ndCur is the argument of an nary expression. &#x000A;			 &#x000A;			 ndCur is the argument of an nary expression if:&#x000A;			 &#x000A;			 1.  The preceding sibling is one of the following:  munder, mover, msub, msup, munder, msubsup, munderover&#x000A;			 and&#x000A;			 2.  The preceding sibling&#39;s child is an nary char as specified by the template &quot;isNary&quot;&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;FIsNaryArgument&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;fNary&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;isNary&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndCur/preceding-sibling::*[1]/child::*[1]&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;preceding-sibling::*[1][self::mml:munder or self::mml:mover or self::mml:munderover or&#x000A;                                                    self::mml:msub or self::mml:msup or self::mml:msubsup]&#x000A;							      and $fNary=&#39;true&#39;&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: mml:mrow | mml:mstyle&#x000A;&#x000A;		 if this row is the next sibling of an n-ary (i.e. any of &#x000A;         mover, munder, munderover, msupsub, msup, or msub with &#x000A;         the base being an n-ary operator) then ignore this. Otherwise&#x000A;         pass through --&gt;&#x000A;  &lt;xsl:template match=&quot;mml:mrow|mml:mstyle&quot;&gt;&#x000A;    &lt;xsl:variable name=&quot;fNaryArgument&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;FIsNaryArgument&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot;/&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:if test=&quot;$fNaryArgument=0&quot;&gt;&#x000A;      &lt;xsl:variable name=&quot;fLinearFrac&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;FLinearFrac&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:variable&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$fLinearFrac=1&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;MakeLinearFraction&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:variable name=&quot;fFunc&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;FIsFunc&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/xsl:variable&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$fFunc=1&quot;&gt;&#x000A;              &lt;xsl:call-template name=&quot;WriteFunc&quot;&gt;&#x000A;                &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;              &lt;/xsl:call-template&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:apply-templates select=&quot;*&quot; /&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:if&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;  &lt;xsl:template match=&quot;mml:mi[not(child::mml:mglyph)] | &#x000A;	                     mml:mn[not(child::mml:mglyph)] | &#x000A;	                     mml:mo[not(child::mml:mglyph)] | &#x000A;	                     mml:ms[not(child::mml:mglyph)] |&#x000A;                       mml:mtext[not(child::mml:mglyph)]&quot;&gt;&#x000A;&#x000A;    &lt;!-- tokens with mglyphs as children are tranformed&#x000A;			 in a different manner than &quot;normal&quot; token elements.  &#x000A;			 Where normal token elements are token elements that&#x000A;			 contain only text --&gt;&#x000A;    &lt;xsl:variable name=&quot;fStartOfRun&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;FStartOfRun&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;!--In MathML, successive characters that are all part of one string are sometimes listed as separate &#x000A;			tags based on their type (identifier (mi), name (mn), operator (mo), quoted (ms), literal text (mtext)), &#x000A;			where said tags act to link one another into one logical run.  In order to wrap the text of successive mi&#39;s, &#x000A;			mn&#39;s, and mo&#39;s into one m:t, we need to denote where a run begins.  The beginning of a run is the first mi, mn, &#x000A;			or mo whose immediately preceding sibling either doesn&#39;t exist or is something other than a &quot;normal&quot; mi, mn, mo, &#x000A;			ms, or mtext tag--&gt;&#x000A;&#x000A;    &lt;!-- If this mi/mo/mn/ms . . . is part the numerator or denominator of a linear fraction, then don&#39;t collect. --&gt;&#x000A;    &lt;xsl:variable name=&quot;fLinearFracParent&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;FLinearFrac&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;parent::*&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;!-- If this mi/mo/mn/ms . . . is part of the name of a function, then don&#39;t collect. --&gt;&#x000A;    &lt;xsl:variable name=&quot;fFunctionName&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;FIsFunc&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;parent::*&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;fShouldCollect&quot;&#x000A;					select=&quot;($fLinearFracParent=0 and $fFunctionName=0) and (parent::mml:mrow or parent::mml:mstyle or &#x000A;					parent::mml:msqrt or parent::mml:menclose or&#x000A;					parent::mml:math or parent::mml:mphantom or &#x000A;					parent::mml:mtd or parent::mml:maction)&quot; /&gt;&#x000A;&#x000A;    &lt;!--In MathML, the meaning of the different parts that make up mathematical structures, such as a fraction &#x000A;			having a numerator and a denominator, is determined by the relative order of those different parts.  &#x000A;			For instance, In a fraction, the numerator is the first child and the denominator is the second child.  &#x000A;			To allow for more complex structures, MathML allows one to link a group of mi, mn, and mo&#39;s together &#x000A;			using the mrow, or mstyle tags.  The mi, mn, and mo&#39;s found within any of the above tags are considered &#x000A;			one run.  Therefore, if the parent of any mi, mn, or mo is found to be an mrow or mstyle, then the contiguous &#x000A;			mi, mn, and mo&#39;s will be considered one run.--&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$fShouldCollect&quot;&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$fStartOfRun=1&quot;&gt;&#x000A;            &lt;!--If this is the beginning of the run, pass all run attributes to CreateRunWithSameProp.--&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateRunWithSameProp&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;mathbackground&quot;&gt;&#x000A;                &lt;!-- Look for the unqualified mathml attribute mathbackground.&#x000A;										 Fall back to the qualified mathml attribute if necessary.&#x000A;										 This priority of unqualified over qualified will be &#x000A;										 followed throughout this xslt. --&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;@mathbackground&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mathbackground&quot;/&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mml:mathbackground&quot;/&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:with-param&gt;&#x000A;              &lt;xsl:with-param name=&quot;mathcolor&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;@mathcolor&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mathcolor&quot;/&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mml:mathcolor&quot;/&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:with-param&gt;&#x000A;              &lt;xsl:with-param name=&quot;mathvariant&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;@mathvariant&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mathvariant&quot;/&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mml:mathvariant&quot;/&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:with-param&gt;&#x000A;              &lt;xsl:with-param name=&quot;color&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;@color&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@color&quot;/&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mml:color&quot;/&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:with-param&gt;&#x000A;              &lt;xsl:with-param name=&quot;font-family&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;@font-family&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@font-family&quot;/&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mml:font-family&quot;/&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:with-param&gt;&#x000A;              &lt;xsl:with-param name=&quot;fontsize&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;@fontsize&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@fontsize&quot;/&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mml:fontsize&quot;/&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:with-param&gt;&#x000A;              &lt;xsl:with-param name=&quot;fontstyle&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;@fontstyle&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@fontstyle&quot;/&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mml:fontstyle&quot;/&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:with-param&gt;&#x000A;              &lt;xsl:with-param name=&quot;fontweight&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;@fontweight&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@fontweight&quot;/&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mml:fontweight&quot;/&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:with-param&gt;&#x000A;              &lt;xsl:with-param name=&quot;mathsize&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;@mathsize&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mathsize&quot;/&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;@mml:mathsize&quot;/&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:with-param&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndTokenFirst&quot; select=&quot;.&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;!--Only one element will be part of run--&gt;&#x000A;        &lt;xsl:element name=&quot;m:r&quot;&gt;&#x000A;          &lt;!--Create Run Properties based on current node&#39;s attributes--&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreateRunProp&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathvariant&quot;&gt;&#x000A;              &lt;xsl:choose&gt;&#x000A;                &lt;xsl:when test=&quot;@mathvariant&quot;&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@mathvariant&quot;/&gt;&#x000A;                &lt;/xsl:when&gt;&#x000A;                &lt;xsl:otherwise&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@mml:mathvariant&quot;/&gt;&#x000A;                &lt;/xsl:otherwise&gt;&#x000A;              &lt;/xsl:choose&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontstyle&quot;&gt;&#x000A;              &lt;xsl:choose&gt;&#x000A;                &lt;xsl:when test=&quot;@fontstyle&quot;&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@fontstyle&quot;/&gt;&#x000A;                &lt;/xsl:when&gt;&#x000A;                &lt;xsl:otherwise&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@mml:fontstyle&quot;/&gt;&#x000A;                &lt;/xsl:otherwise&gt;&#x000A;              &lt;/xsl:choose&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontweight&quot;&gt;&#x000A;              &lt;xsl:choose&gt;&#x000A;                &lt;xsl:when test=&quot;@fontweight&quot;&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@fontweight&quot;/&gt;&#x000A;                &lt;/xsl:when&gt;&#x000A;                &lt;xsl:otherwise&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@mml:fontweight&quot;/&gt;&#x000A;                &lt;/xsl:otherwise&gt;&#x000A;              &lt;/xsl:choose&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathcolor&quot;&gt;&#x000A;              &lt;xsl:choose&gt;&#x000A;                &lt;xsl:when test=&quot;@mathcolor&quot;&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@mathcolor&quot;/&gt;&#x000A;                &lt;/xsl:when&gt;&#x000A;                &lt;xsl:otherwise&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@mml:mathcolor&quot;/&gt;&#x000A;                &lt;/xsl:otherwise&gt;&#x000A;              &lt;/xsl:choose&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathsize&quot;&gt;&#x000A;              &lt;xsl:choose&gt;&#x000A;                &lt;xsl:when test=&quot;@mathsize&quot;&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@mathsize&quot;/&gt;&#x000A;                &lt;/xsl:when&gt;&#x000A;                &lt;xsl:otherwise&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@mml:mathsize&quot;/&gt;&#x000A;                &lt;/xsl:otherwise&gt;&#x000A;              &lt;/xsl:choose&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;color&quot;&gt;&#x000A;              &lt;xsl:choose&gt;&#x000A;                &lt;xsl:when test=&quot;@color&quot;&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@color&quot;/&gt;&#x000A;                &lt;/xsl:when&gt;&#x000A;                &lt;xsl:otherwise&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@mml:color&quot;/&gt;&#x000A;                &lt;/xsl:otherwise&gt;&#x000A;              &lt;/xsl:choose&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontsize&quot;&gt;&#x000A;              &lt;xsl:choose&gt;&#x000A;                &lt;xsl:when test=&quot;@fontsize&quot;&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@fontsize&quot;/&gt;&#x000A;                &lt;/xsl:when&gt;&#x000A;                &lt;xsl:otherwise&gt;&#x000A;                  &lt;xsl:value-of select=&quot;@mml:fontsize&quot;/&gt;&#x000A;                &lt;/xsl:otherwise&gt;&#x000A;              &lt;/xsl:choose&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fNor&quot;&gt;&#x000A;              &lt;xsl:call-template name=&quot;FNor&quot;&gt;&#x000A;                &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;              &lt;/xsl:call-template&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;          &lt;xsl:element name=&quot;m:t&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;OutputText&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;sInput&quot; select=&quot;normalize-space(.)&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: CreateRunWithSameProp&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;CreateRunWithSameProp&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;mathbackground&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;mathcolor&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;mathvariant&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;color&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;font-family&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fontsize&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fontstyle&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fontweight&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;mathsize&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;ndTokenFirst&quot; /&gt;&#x000A;&#x000A;    &lt;!--Given mathcolor, color, mstyle&#39;s (ancestor) color, and precedence of &#x000A;			said attributes, determine the actual color of the current run--&gt;&#x000A;    &lt;xsl:variable name=&quot;sColorPropCur&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$mathcolor!=&#39;&#39;&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$mathcolor&quot; /&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:when test=&quot;$color!=&#39;&#39;&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$color&quot; /&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:when test=&quot;$ndTokenFirst/ancestor::mml:mstyle[@color][1]/@color!=&#39;&#39;&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$ndTokenFirst/ancestor::mml:mstyle[@color][1]/@color&quot; /&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:when test=&quot;$ndTokenFirst/ancestor::mml:mstyle[@mml:color][1]/@mml:color!=&#39;&#39;&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$ndTokenFirst/ancestor::mml:mstyle[@color][1]/@mml:color&quot; /&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;&#39;&#39;&quot; /&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;!--Given mathsize, and fontsize and precedence of said attributes, &#x000A;			determine the actual font size of the current run--&gt;&#x000A;    &lt;xsl:variable name=&quot;sSzCur&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$mathsize!=&#39;&#39;&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$mathsize&quot; /&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:when test=&quot;$fontsize!=&#39;&#39;&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$fontsize&quot; /&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;&#39;&#39;&quot; /&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;!--Given mathvariant, fontstyle, and fontweight, and precedence of &#x000A;			the attributes, determine the actual font of the current run--&gt;&#x000A;    &lt;xsl:variable name=&quot;sFontCur&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;GetFontCur&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;mathvariant&quot; select=&quot;$mathvariant&quot; /&gt;&#x000A;        &lt;xsl:with-param name=&quot;fontstyle&quot; select=&quot;$fontstyle&quot; /&gt;&#x000A;        &lt;xsl:with-param name=&quot;fontweight&quot; select=&quot;$fontweight&quot; /&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndTokenFirst&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;!-- The omml equivalent structure for mml:mtext is an omml run with the run property m:nor (normal) set.&#x000A;         Therefore, we can only collect mtexts with  other mtext elements.  Suppose the $ndTokenFirst is an &#x000A;         mml:mtext, then if any of its following siblings are to be grouped, they must also be mml:text elements.  &#x000A;         The inverse is also true, suppose the $ndTokenFirst isn&#39;t an mml:mtext, then if any of its following siblings &#x000A;         are to be grouped with $ndTokenFirst, they can&#39;t be mml:mtext elements--&gt;&#x000A;    &lt;xsl:variable name=&quot;fNdTokenFirstIsMText&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$ndTokenFirst/self::mml:mtext&quot;&gt;1&lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;!--In order to determine the length of the run, we will find the number of nodes before the inital node in the run and&#x000A;			the number of nodes before the first node that DOES NOT belong to the current run.  The number of nodes that will&#x000A;			be printed is One Less than the difference between the latter and the former--&gt;&#x000A;&#x000A;    &lt;!--Find index of current node--&gt;&#x000A;    &lt;xsl:variable name=&quot;nndBeforeFirst&quot; select=&quot;count($ndTokenFirst/preceding-sibling::*)&quot; /&gt;&#x000A;&#x000A;    &lt;!--Find index of next change in run properties.&#x000A;		&#x000A;		    The basic idea is that we want to find the position of the last node in the longest &#x000A;				sequence of nodes, starting from ndTokenFirst, that can be grouped into a run.  For&#x000A;				example, nodes A and B can be grouped together into the same run iff they have the same &#x000A;				props.&#x000A;				&#x000A;				To accomplish this grouping, we want to find the next sibling to ndTokenFirst that shouldn&#39;t be &#x000A;				included in the run of text.  We do this by counting the number of elements that precede the first&#x000A;				such element that doesn&#39;t belong.  The xpath that accomplishes this is below.&#x000A;				    &#x000A;						Count the number of siblings the precede the first element after ndTokenFirst that shouldn&#39;t belong.&#x000A;						count($ndTokenFirst/following-sibling::*[ . . . ][1]/preceding-sibling::*)&#x000A;						&#x000A;				Now, the hard part to this is what is represented by the &#39;. . .&#39; above.  This conditional expression is &#x000A;				defining what elements *don&#39;t* belong to the current run.  The conditions are as follows:&#x000A;				&#x000A;				The element is not a token element (mi, mn, mo, ms, or mtext)&#x000A;				&#x000A;				or&#x000A;				&#x000A;				The token element contains a glyph child (this is handled separately).&#x000A;				&#x000A;				or&#x000A;				&#x000A;				The token is an mtext and the run didn&#39;t start with an mtext, or the token isn&#39;t an mtext and the run started &#x000A;				with an mtext.  We do this check because mtext transforms into an omml m:nor property, and thus, these mtext&#x000A;				token elements need to be grouped separately from other token elements.&#x000A;				&#x000A;				// We do an or not( . . . ), because it was easier to define what token elements match than how they don&#39;t match.&#x000A;				// Thus, this inner &#39;. . .&#39; defines how token attributes equate to one another.  We add the &#39;not&#39; outside of to accomplish&#x000A;				// the goal of the outer &#39;. . .&#39;, which is the find the next element that *doesn&#39;t* match.&#x000A;				or not(&#x000A;				   The background colors match.&#x000A;					 &#x000A;					 and&#x000A;					 &#x000A;							The current font (sFontCur) matches the mathvariant&#x000A;					 &#x000A;							or&#x000A;							&#x000A;							sFontCur is normal and matches the current font characteristics&#x000A;							&#x000A;							or &#x000A;							&#x000A;							sFontCur is italic and matches the current font characteristics&#x000A;							&#x000A;							or &#x000A;							&#x000A;							. . .&#x000A;				&#x000A;					 and&#x000A;					 &#x000A;					 The font family matches the current font family.&#x000A;					 ) // end of not().--&gt;&#x000A;    &lt;xsl:variable name=&quot;nndBeforeLim&quot; select=&quot;count($ndTokenFirst/following-sibling::*&#x000A;					[(not(self::mml:mi) and not(self::mml:mn) and not(self::mml:mo) and not(self::mml:ms) and not(self::mml:mtext))&#x000A;					or&#x000A;					(self::mml:mi[child::mml:mglyph] or self::mml:mn[child::mml:mglyph] or self::mml:mo[child::mml:mglyph] or self::mml:ms[child::mml:mglyph] or self::mml:mtext[child::mml:mglyph])&#x000A;					or&#x000A;					(($fNdTokenFirstIsMText=1 and not(self::mml:mtext)) or ($fNdTokenFirstIsMText=0 and self::mml:mtext))&#x000A;					or  &#x000A;					not(&#x000A;						((($sFontCur=@mathvariant or $sFontCur=@mml:mathvariant)&#x000A;							or&#x000A;							($sFontCur=&#39;normal&#39;&#x000A;							 and ((@mathvariant=&#39;normal&#39; or @mml:mathvariant=&#39;normal&#39;)&#x000A;									  or (((not(@mathvariant) or @mathvariant=&#39;&#39;) and (not(@mml:mathvariant) or @mml:mathvariant=&#39;&#39;))&#x000A;											  and (&#x000A;									           ((@fontstyle=&#39;normal&#39; or @mml:fontstyle=&#39;normal&#39;) and (not(@fontweight=&#39;bold&#39;) and not(@mml:fontweight=&#39;bold&#39;)))&#x000A;									           or (self::mml:mi and string-length(normalize-space(.)) &amp;gt; 1)&#x000A;									           or (self::mml:mn and string(number(self::mml:mn/text()))=&#39;NaN&#39;)&#x000A;									          )&#x000A;									     )&#x000A;									 )&#x000A;							)&#x000A;							or&#x000A;							($sFontCur=&#39;italic&#39; &#x000A;							 and ((@mathvariant=&#39;italic&#39; or @mml:mathvariant=&#39;italic&#39;)&#x000A;									  or (((not(@mathvariant) or @mathvariant=&#39;&#39;) and (not(@mml:mathvariant) or @mml:mathvariant=&#39;&#39;))&#x000A;												and (&#x000A;									           ((@fontstyle=&#39;italic&#39; or @mml:fontstyle=&#39;italic&#39;) and (not(@fontweight=&#39;bold&#39;) and not(@mml:fontweight=&#39;bold&#39;)))&#x000A;										         or  &#x000A;															((self::mml:mn and string(number(self::mml:mn/text()))!=&#39;NaN&#39;)&#x000A;															 or self::mml:mo&#x000A;															 or (self::mml:mi and string-length(normalize-space(.)) &amp;lt;= 1)&#x000A;									            )&#x000A;									          )&#x000A;									     )&#x000A;									 )&#x000A;							) &#x000A;							or&#x000A;							($sFontCur=&#39;bold&#39;&#x000A;							 and ((@mathvariant=&#39;bold&#39; or @mml:mathvariant=&#39;bold&#39;)&#x000A;									  or (((not(@mathvariant) or @mathvariant=&#39;&#39;) and (not(@mml:mathvariant) or @mml:mathvariant=&#39;&#39;))&#x000A;									      and (&#x000A;									           ((@fontweight=&#39;bold&#39; or @mml:fontweight=&#39;bold&#39;)&#x000A;									           and ((@fontstyle=&#39;normal&#39; or @mml:fontstyle=&#39;normal&#39;) or (self::mml:mi and string-length(normalize-space(.)) &amp;lt;= 1))&#x000A;									          )&#x000A;									     )&#x000A;									   )  &#x000A;									 )&#x000A;							)&#x000A;						  or&#x000A;							(($sFontCur=&#39;bi&#39; or $sFontCur=&#39;bold-italic&#39;)&#x000A;							 and (&#x000A;									  (@mathvariant=&#39;bold-italic&#39; or @mml:mathvariant=&#39;bold-italic&#39;)&#x000A;									  or (((not(@mathvariant) or @mathvariant=&#39;&#39;) and (not(@mml:mathvariant) or @mml:mathvariant=&#39;&#39;))&#x000A;												and (&#x000A;														 ((@fontweight=&#39;bold&#39; or @mml:fontweight=&#39;bold&#39;) and (@fontstyle=&#39;italic&#39; or @mml:fontstyle=&#39;italic&#39;))&#x000A;														 or ((@fontweight=&#39;bold&#39; or @mml:fontweight=&#39;bold&#39;)&#x000A;														  	 and (self::mml:mn &#x000A;																 		  or self::mml:mo &#x000A;																			or (self::mml:mi and string-length(normalize-space(.)) &amp;lt;= 1)))&#x000A;									          )&#x000A;									     )&#x000A;									 )&#x000A;							)		     &#x000A;							or&#x000A;              (($sFontCur=&#39;&#39; &#x000A;                 and (&#x000A;                     ((not(@mathvariant) or @mathvariant=&#39;&#39;)&#x000A;                        and (not(@mml:mathvariant) or @mml:mathvariant=&#39;&#39;)&#x000A;                        and (not(@fontstyle) or @fontstyle=&#39;&#39;)&#x000A;                        and (not(@mml:fontstyle) or @mml:fontstyle=&#39;&#39;)&#x000A;                        and (not(@fontweight)or @fontweight=&#39;&#39;)&#x000A;                        and (not(@mml:fontweight) or @mml:fontweight=&#39;&#39;)&#x000A;		              ) &#x000A;                      or &#x000A;                        (@mathvariant=&#39;italic&#39; or @mml:mathvariant=&#39;italic&#39;)  &#x000A;                      or (&#x000A;                           ((not(@mathvariant) or @mathvariant=&#39;&#39;) and (not(@mml:mathvariant) or @mml:mathvariant=&#39;&#39;))&#x000A;                               and (&#x000A;	                                 (((@fontweight=&#39;normal&#39; or @mml:fontweight=&#39;normal&#39;) &#x000A;		                                and (@fontstyle=&#39;italic&#39; or @mml:fontstyle=&#39;italic&#39;))&#x000A;	                                 )&#x000A;	                                 or&#x000A;		                                ((not(@fontweight) or @fontweight=&#39;&#39;) and (not(@mml:fontweight) or @mml:fontweight=&#39;&#39;))&#x000A;			                                and (@fontstyle=&#39;italic&#39; or @mml:fontstyle=&#39;italic&#39;)&#x000A;	                                 or&#x000A;		                                ((not(@fontweight) or @fontweight=&#39;&#39;) and (not(@mml:fontweight) or @mml:fontweight=&#39;&#39;))&#x000A;			                                and (not(@fontstyle) or @fontstyle=&#39;&#39;)&#x000A;			                                and (not(@mml:fontstyle) or @mml:fontstyle=&#39;&#39;))&#x000A;                            )&#x000A;		              )&#x000A;&#x000A;              ))&#x000A;							or&#x000A;              ($sFontCur=&#39;normal&#39; &#x000A;               and ((self::mml:mi &#x000A;                     and (not(@mathvariant) or @mathvariant=&#39;&#39;)&#x000A;	                 and (not(@mml:mathvariant) or @mml:mathvariant)&#x000A;	                 and (not(@fontstyle) or @fontstyle=&#39;&#39;) &#x000A;	                 and (not(@mml:fontstyle) or @mml:fontstyle=&#39;&#39;)&#x000A;	                 and (not(@fontweight) or @fontweight=&#39;&#39;) &#x000A;	                 and (not(@mml:fontweight) or @mml:fontweight=&#39;&#39;)&#x000A;	                 and (string-length(normalize-space(.)) &amp;gt; 1)&#x000A;	                 )&#x000A;	                or ((self::mml:ms or self::mml:mtext) &#x000A;		                and (not(@mathvariant) or @mathvariant=&#39;&#39;)&#x000A;		                and (not(@mml:mathvariant) or @mml:mathvariant)&#x000A;		                and (not(@fontstyle) or @fontstyle)&#x000A;		                and (not(@fontstyle) or @fontstyle=&#39;&#39;)&#x000A;		                and (not(@fontweight) or @fontweight)&#x000A;		                and (not(@mml:fontweight) or @mml:fontweight=&#39;&#39;)&#x000A;		                )&#x000A;	                )&#x000A;              )			 &#x000A;						)&#x000A;						and&#x000A;            (($font-family = @font-family or $font-family = @mml:font-family)&#x000A;              or (($font-family=&#39;&#39; or not($font-family))&#x000A;	              and (not(@font-family) or @font-family=&#39;&#39;)&#x000A;	              and (not(@mml:font-family) or @mml:font-family=&#39;&#39;)&#x000A;	             ) &#x000A;            )&#x000A;					))&#x000A;					][1]/preceding-sibling::*)&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;cndRun&quot; select=&quot;$nndBeforeLim - $nndBeforeFirst&quot; /&gt;&#x000A;&#x000A;    &lt;!--Contiguous groups of like-property mi, mn, and mo&#39;s are separated by non- mi, mn, mo tags, or mi,mn, or mo&#x000A;			tags with different properties.  nndBeforeLim is the number of nodes before the next tag which separates contiguous &#x000A;			groups of like-property mi, mn, and mo&#39;s.  Knowing this delimiting tag allows for the aggregation of the correct &#x000A;			number of mi, mn, and mo tags.--&gt;&#x000A;    &lt;xsl:element name=&quot;m:r&quot;&gt;&#x000A;&#x000A;      &lt;!--The beginning and ending of the current run has been established. Now we should open a run element--&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;&#x000A;        &lt;!--If cndRun &gt; 0, then there is a following diffrent prop, or non- Token, &#x000A;						although there may or may not have been a preceding different prop, or non-&#x000A;						Token--&gt;&#x000A;        &lt;xsl:when test=&quot;$cndRun &amp;gt; 0&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreateRunProp&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathvariant&quot; select=&quot;$mathvariant&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontstyle&quot; select=&quot;$fontstyle&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontweight&quot; select=&quot;$fontweight&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathcolor&quot; select=&quot;$mathcolor&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathsize&quot; select=&quot;$mathsize&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;color&quot; select=&quot;$color&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontsize&quot; select=&quot;$fontsize&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndTokenFirst&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fNor&quot;&gt;&#x000A;              &lt;xsl:call-template name=&quot;FNor&quot;&gt;&#x000A;                &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndTokenFirst&quot; /&gt;&#x000A;              &lt;/xsl:call-template&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;          &lt;xsl:element name=&quot;m:t&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;OutputText&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;sInput&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;namespace-uri($ndTokenFirst) = &#39;http://www.w3.org/1998/Math/MathML&#39; and local-name($ndTokenFirst) = &#39;ms&#39;&quot;&gt;&#x000A;                    &lt;xsl:call-template name=&quot;OutputMs&quot;&gt;&#x000A;                      &lt;xsl:with-param name=&quot;msCur&quot; select=&quot;$ndTokenFirst&quot; /&gt;&#x000A;                    &lt;/xsl:call-template&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;normalize-space($ndTokenFirst)&quot; /&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;                &lt;xsl:for-each select=&quot;$ndTokenFirst/following-sibling::*[position() &amp;lt; $cndRun]&quot;&gt;&#x000A;                  &lt;xsl:choose&gt;&#x000A;                    &lt;xsl:when test=&quot;namespace-uri(.) = &#39;http://www.w3.org/1998/Math/MathML&#39; and &#x000A;													local-name(.) = &#39;ms&#39;&quot;&gt;&#x000A;                      &lt;xsl:call-template name=&quot;OutputMs&quot;&gt;&#x000A;                        &lt;xsl:with-param name=&quot;msCur&quot; select=&quot;.&quot; /&gt;&#x000A;                      &lt;/xsl:call-template&gt;&#x000A;                    &lt;/xsl:when&gt;&#x000A;                    &lt;xsl:otherwise&gt;&#x000A;                      &lt;xsl:value-of select=&quot;normalize-space(.)&quot; /&gt;&#x000A;                    &lt;/xsl:otherwise&gt;&#x000A;                  &lt;/xsl:choose&gt;&#x000A;                &lt;/xsl:for-each&gt;&#x000A;              &lt;/xsl:with-param&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;&#x000A;          &lt;!--if cndRun lt;= 0, then iNextNonToken = 0, &#x000A;						and iPrecNonToken gt;= 0.  In either case, b/c there &#x000A;						is no next different property or non-Token &#x000A;						(which is implied by the nndBeforeLast being equal to 0) &#x000A;						you can put all the remaining mi, mn, and mo&#39;s into one &#x000A;						group.--&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreateRunProp&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathvariant&quot; select=&quot;$mathvariant&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontstyle&quot; select=&quot;$fontstyle&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontweight&quot; select=&quot;$fontweight&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathcolor&quot; select=&quot;$mathcolor&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathsize&quot; select=&quot;$mathsize&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;color&quot; select=&quot;$color&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontsize&quot; select=&quot;$fontsize&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndTokenFirst&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fNor&quot;&gt;&#x000A;              &lt;xsl:call-template name=&quot;FNor&quot;&gt;&#x000A;                &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndTokenFirst&quot; /&gt;&#x000A;              &lt;/xsl:call-template&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;          &lt;xsl:element name=&quot;m:t&quot;&gt;&#x000A;&#x000A;            &lt;!--Create the Run, first output current, then in a &#x000A;							for-each, because all the following siblings are&#x000A;							mn, mi, and mo&#39;s that conform to the run&#39;s properties,&#x000A;							group them together--&gt;&#x000A;            &lt;xsl:call-template name=&quot;OutputText&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;sInput&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;namespace-uri($ndTokenFirst) = &#39;http://www.w3.org/1998/Math/MathML&#39; and &#x000A;													local-name($ndTokenFirst) = &#39;ms&#39;&quot;&gt;&#x000A;                    &lt;xsl:call-template name=&quot;OutputMs&quot;&gt;&#x000A;                      &lt;xsl:with-param name=&quot;msCur&quot; select=&quot;$ndTokenFirst&quot; /&gt;&#x000A;                    &lt;/xsl:call-template&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;normalize-space($ndTokenFirst)&quot; /&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;                &lt;xsl:for-each select=&quot;$ndTokenFirst/following-sibling::*[self::mml:mi or self::mml:mn or self::mml:mo or self::mml:ms or self::mml:mtext]&quot;&gt;&#x000A;                  &lt;xsl:choose&gt;&#x000A;                    &lt;xsl:when test=&quot;namespace-uri(.) = &#39;http://www.w3.org/1998/Math/MathML&#39; and &#x000A;													local-name(.) = &#39;ms&#39;&quot;&gt;&#x000A;                      &lt;xsl:call-template name=&quot;OutputMs&quot;&gt;&#x000A;                        &lt;xsl:with-param name=&quot;msCur&quot; select=&quot;.&quot; /&gt;&#x000A;                      &lt;/xsl:call-template&gt;&#x000A;                    &lt;/xsl:when&gt;&#x000A;                    &lt;xsl:otherwise&gt;&#x000A;                      &lt;xsl:value-of select=&quot;normalize-space(.)&quot; /&gt;&#x000A;                    &lt;/xsl:otherwise&gt;&#x000A;                  &lt;/xsl:choose&gt;&#x000A;                &lt;/xsl:for-each&gt;&#x000A;              &lt;/xsl:with-param&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:element&gt;&#x000A;&#x000A;    &lt;!--The run was terminated by an mi, mn, mo, ms, or mtext with different properties, &#x000A;				therefore, call-template CreateRunWithSameProp, using cndRun+1 node as new start node--&gt;&#x000A;    &lt;xsl:if test=&quot;$nndBeforeLim!=0 &#x000A;           and ($ndTokenFirst/following-sibling::*[$cndRun]/self::mml:mi or &#x000A;					      $ndTokenFirst/following-sibling::*[$cndRun]/self::mml:mn or&#x000A;					      $ndTokenFirst/following-sibling::*[$cndRun]/self::mml:mo or&#x000A;					      $ndTokenFirst/following-sibling::*[$cndRun]/self::mml:ms or&#x000A;                $ndTokenFirst/following-sibling::*[$cndRun]/self::mml:mtext) &#x000A;            and (count($ndTokenFirst/following-sibling::*[$cndRun]/mml:mglyph) = 0)&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;CreateRunWithSameProp&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;mathbackground&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mathbackground&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mathbackground&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mml:mathbackground&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;mathcolor&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mathcolor&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mathcolor&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mml:mathcolor&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;mathvariant&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mathvariant&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mathvariant&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mml:mathvariant&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;color&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@color&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@color&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mml:color&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;font-family&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@font-family&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@font-family&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mml:font-family&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;fontsize&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@fontsize&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@fontsize&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mml:fontsize&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;fontstyle&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@fontstyle&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@fontstyle&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mml:fontstyle&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;fontweight&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@fontweight&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@fontweight&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mml:fontweight&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;mathsize&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mathsize&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mathsize&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]/@mml:mathsize&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndTokenFirst&quot; select=&quot;$ndTokenFirst/following-sibling::*[$cndRun]&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:if&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: FNor&#x000A;				 Given the context of ndCur, determine if ndCur should be omml&#39;s normal style.&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;FNor&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- Is the current node an mml:mtext, or if this is an mglyph whose parent is &#x000A;             an mml:mtext. --&gt;&#x000A;      &lt;xsl:when test=&quot;$ndCur/self::mml:mtext or ($ndCur/self::mml:mglyph and parent::mml:mtext)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- %%Template: CreateRunProp&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;CreateRunProp&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;mathbackground&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;mathcolor&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;mathvariant&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;color&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;font-family&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fontsize&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fontstyle&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fontweight&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;mathsize&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fontfamily&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fNor&quot; /&gt;&#x000A;    &lt;xsl:variable name=&quot;mstyleColor&quot;&gt;&#x000A;      &lt;xsl:if test=&quot;not(not($ndCur))&quot;&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$ndCur/ancestor::mml:mstyle[@color][1]/@color&quot;&gt;&#x000A;            &lt;xsl:value-of select=&quot;$ndCur/ancestor::mml:mstyle[@color][1]/@color&quot;/&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;xsl:value-of select=&quot;$ndCur/ancestor::mml:mstyle[@color][1]/@mml:color&quot;/&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:if&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:call-template name=&quot;CreateMathRPR&quot;&gt;&#x000A;      &lt;xsl:with-param name=&quot;mathvariant&quot; select=&quot;$mathvariant&quot; /&gt;&#x000A;      &lt;xsl:with-param name=&quot;fontstyle&quot; select=&quot;$fontstyle&quot; /&gt;&#x000A;      &lt;xsl:with-param name=&quot;fontweight&quot; select=&quot;$fontweight&quot; /&gt;&#x000A;      &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndCur&quot; /&gt;&#x000A;      &lt;xsl:with-param name=&quot;fNor&quot; select=&quot;$fNor&quot; /&gt;&#x000A;    &lt;/xsl:call-template&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: CreateMathRPR&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;CreateMathRPR&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;mathvariant&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fontstyle&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fontweight&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fNor&quot; /&gt;&#x000A;    &lt;xsl:variable name=&quot;sFontCur&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;GetFontCur&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;mathvariant&quot; select=&quot;$mathvariant&quot; /&gt;&#x000A;        &lt;xsl:with-param name=&quot;fontstyle&quot; select=&quot;$fontstyle&quot; /&gt;&#x000A;        &lt;xsl:with-param name=&quot;fontweight&quot; select=&quot;$fontweight&quot; /&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndCur&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:if test=&quot;$fNor=1 or ($sFontCur!=&#39;italic&#39; and $sFontCur!=&#39;&#39;)&quot;&gt;&#x000A;      &lt;xsl:element name=&quot;m:rPr&quot;&gt;&#x000A;        &lt;xsl:if test=&quot;$fNor=1&quot;&gt;&#x000A;          &lt;m:nor /&gt;&#x000A;        &lt;/xsl:if&gt;&#x000A;        &lt;xsl:call-template name=&quot;CreateMathScrStyProp&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;font&quot; select=&quot;$sFontCur&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;fNor&quot; select=&quot;$fNor&quot; /&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;    &lt;/xsl:if&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: GetFontCur&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;GetFontCur&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;mathvariant&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fontstyle&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fontweight&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$mathvariant!=&#39;&#39;&quot;&gt;&#x000A;        &lt;xsl:value-of select=&quot;$mathvariant&quot; /&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;not($ndCur)&quot;&gt;&#x000A;        &lt;xsl:value-of select=&quot;&#39;italic&#39;&quot; /&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$ndCur/self::mml:mi and (string-length(normalize-space($ndCur)) &amp;lt;= 1)&#x000A;								      or $ndCur/self::mml:mn and string(number($ndCur/text()))!=&#39;NaN&#39;&#x000A;								      or $ndCur/self::mml:mo&quot;&gt;&#x000A;&#x000A;        &lt;!-- The default for the above three cases is fontstyle=italic fontweight=normal.--&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$fontstyle=&#39;normal&#39; and $fontweight=&#39;bold&#39;&quot;&gt;&#x000A;            &lt;!-- In omml, a sty of &#39;b&#39; (which is what bold is translated into)&#x000A;						     implies a normal fontstyle --&gt;&#x000A;            &lt;xsl:value-of select=&quot;&#39;bold&#39;&quot; /&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:when test=&quot;$fontstyle=&#39;normal&#39;&quot;&gt;&#x000A;            &lt;xsl:value-of select=&quot;&#39;normal&#39;&quot; /&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:when test=&quot;$fontweight=&#39;bold&#39;&quot;&gt;&#x000A;            &lt;xsl:value-of select=&quot;&#39;bi&#39;&quot; /&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;xsl:value-of select=&quot;&#39;italic&#39;&quot; /&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;!--Default is fontweight = &#39;normal&#39; and fontstyle=&#39;normal&#39;--&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$fontstyle=&#39;italic&#39; and $fontweight=&#39;bold&#39;&quot;&gt;&#x000A;            &lt;xsl:value-of select=&quot;&#39;bi&#39;&quot; /&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:when test=&quot;$fontstyle=&#39;italic&#39;&quot;&gt;&#x000A;            &lt;xsl:value-of select=&quot;&#39;italic&#39;&quot; /&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:when test=&quot;$fontweight=&#39;bold&#39;&quot;&gt;&#x000A;            &lt;xsl:value-of select=&quot;&#39;bold&#39;&quot; /&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;xsl:value-of select=&quot;&#39;normal&#39;&quot; /&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- %%Template: CreateMathScrStyProp&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;CreateMathScrStyProp&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;font&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fNor&quot; select=&quot;0&quot;/&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;normal&#39; and $fNor=0&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:sty&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;p&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;bold&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:sty&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;b&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;italic&#39;&quot;&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;script&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:scr&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;script&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;bold-script&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:scr&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;script&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;        &lt;xsl:element name=&quot;m:sty&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;b&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;double-struck&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:scr&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;double-struck&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;        &lt;xsl:element name=&quot;m:sty&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;p&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;fraktur&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:scr&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;fraktur&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;        &lt;xsl:element name=&quot;m:sty&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;p&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;bold-fraktur&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:scr&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;fraktur&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;        &lt;xsl:element name=&quot;m:sty&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;b&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;sans-serif&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:scr&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;sans-serif&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;        &lt;xsl:element name=&quot;m:sty&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;p&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;bold-sans-serif&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:scr&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;sans-serif&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;        &lt;xsl:element name=&quot;m:sty&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;b&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;sans-serif-italic&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:scr&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;sans-serif&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;sans-serif-bold-italic&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:scr&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;sans-serif&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;        &lt;xsl:element name=&quot;m:sty&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;bi&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;monospace&#39;&quot; /&gt;&#x000A;      &lt;!-- We can&#39;t do monospace, so leave empty --&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;bold&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:sty&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;b&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$font=&#39;bi&#39; or $font=&#39;bold-italic&#39;&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:sty&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;bi&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;xsl:template name=&quot;FBar&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;sLineThickness&quot; /&gt;&#x000A;    &lt;xsl:variable name=&quot;sLowerLineThickness&quot; select=&quot;translate($sLineThickness, $StrUCAlphabet, $StrLCAlphabet)&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;string-length($sLowerLineThickness)=0&#x000A;                      or $sLowerLineThickness=&#39;thin&#39; &#x000A;                      or $sLowerLineThickness=&#39;medium&#39; &#x000A;                      or $sLowerLineThickness=&#39;thick&#39;&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:variable name=&quot;fStrContainsNonZeroDigit&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FStrContainsNonZeroDigit&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;s&quot; select=&quot;$sLowerLineThickness&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$fStrContainsNonZeroDigit=1&quot;&gt;1&lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- %%Template: match mfrac &#x000A;		--&gt;&#x000A;  &lt;xsl:template match=&quot;mml:mfrac&quot;&gt;&#x000A;    &lt;xsl:variable name=&quot;fBar&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;FBar&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;sLineThickness&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;@linethickness&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;@linethickness&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;@mml:linethickness&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:element name=&quot;m:f&quot;&gt;&#x000A;      &lt;xsl:element name=&quot;m:fPr&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:type&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;            &lt;xsl:choose&gt;&#x000A;              &lt;xsl:when test=&quot;$fBar=0&quot;&gt;noBar&lt;/xsl:when&gt;&#x000A;              &lt;xsl:when test=&quot;@bevelled=&#39;true&#39; or @mml:bevelled=&#39;true&#39;&quot;&gt;skw&lt;/xsl:when&gt;&#x000A;              &lt;xsl:otherwise&gt;bar&lt;/xsl:otherwise&gt;&#x000A;            &lt;/xsl:choose&gt;&#x000A;          &lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;      &lt;xsl:element name=&quot;m:num&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;      &lt;xsl:element name=&quot;m:den&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;    &lt;/xsl:element&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: match menclose msqrt&#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;mml:menclose | mml:msqrt&quot;&gt;&#x000A;    &lt;xsl:variable name=&quot;sLowerCaseNotation&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;@notation&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;translate(@notation, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;translate(@mml:notation, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- Take care of default --&gt;&#x000A;      &lt;xsl:when test=&quot;$sLowerCaseNotation=&#39;radical&#39; &#x000A;                      or not($sLowerCaseNotation) &#x000A;                      or $sLowerCaseNotation=&#39;&#39; &#x000A;                      or self::mml:msqrt&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:rad&quot;&gt;&#x000A;          &lt;xsl:element name=&quot;m:radPr&quot;&gt;&#x000A;            &lt;xsl:element name=&quot;m:degHide&quot;&gt;&#x000A;              &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;            &lt;/xsl:element&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;          &lt;xsl:element name=&quot;m:deg&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;          &lt;xsl:element name=&quot;m:e&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;*&quot; /&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$sLowerCaseNotation=&#39;actuarial&#39; or $sLowerCaseNotation=&#39;longdiv&#39;&quot; /&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;xsl:element name=&quot;m:borderBox&quot;&gt;&#x000A;              &lt;!-- Dealing with more complex notation attribute --&gt;&#x000A;              &lt;xsl:variable name=&quot;fBox&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;!-- Word doesn&#39;t have circle and roundedbox concepts, therefore, map both to a &#x000A;                       box. --&gt;&#x000A;                  &lt;xsl:when test=&quot;contains($sLowerCaseNotation, &#39;box&#39;)&#x000A;                                  or contains($sLowerCaseNotation, &#39;circle&#39;)&#x000A;                                  or contains($sLowerCaseNotation, &#39;roundedbox&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:variable&gt;&#x000A;              &lt;xsl:variable name=&quot;fTop&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;contains($sLowerCaseNotation, &#39;top&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:variable&gt;&#x000A;              &lt;xsl:variable name=&quot;fBot&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;contains($sLowerCaseNotation, &#39;bottom&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:variable&gt;&#x000A;              &lt;xsl:variable name=&quot;fLeft&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;contains($sLowerCaseNotation, &#39;left&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:variable&gt;&#x000A;              &lt;xsl:variable name=&quot;fRight&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;contains($sLowerCaseNotation, &#39;right&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:variable&gt;&#x000A;              &lt;xsl:variable name=&quot;fStrikeH&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;contains($sLowerCaseNotation, &#39;horizontalstrike&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:variable&gt;&#x000A;              &lt;xsl:variable name=&quot;fStrikeV&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;contains($sLowerCaseNotation, &#39;verticalstrike&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:variable&gt;&#x000A;              &lt;xsl:variable name=&quot;fStrikeBLTR&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;contains($sLowerCaseNotation, &#39;updiagonalstrike&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:variable&gt;&#x000A;              &lt;xsl:variable name=&quot;fStrikeTLBR&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;contains($sLowerCaseNotation, &#39;downdiagonalstrike&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:variable&gt;&#x000A;&#x000A;              &lt;!-- Should we create borderBoxPr? &#x000A;                   We should if the enclosure isn&#39;t Word&#39;s default, which is&#x000A;                   a plain box --&gt;&#x000A;              &lt;xsl:if test=&quot;$fStrikeH=1 &#x000A;                          or $fStrikeV=1&#x000A;                          or $fStrikeBLTR=1 &#x000A;                          or $fStrikeTLBR=1&#x000A;                          or ($fBox=0&#x000A;                              and not($fTop=1 &#x000A;                                      and $fBot=1&#x000A;                                      and $fLeft=1&#x000A;                                      and $fRight=1)&#x000A;                              )&quot;&gt;&#x000A;                &lt;xsl:element name=&quot;m:borderBoxPr&quot;&gt;&#x000A;                  &lt;xsl:if test=&quot;$fBox=0&quot;&gt;&#x000A;                    &lt;xsl:if test=&quot;$fTop=0&quot;&gt;&#x000A;                      &lt;xsl:element name=&quot;m:hideTop&quot;&gt;&#x000A;                        &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;                      &lt;/xsl:element&gt;&#x000A;                    &lt;/xsl:if&gt;&#x000A;                    &lt;xsl:if test=&quot;$fBot=0&quot;&gt;&#x000A;                      &lt;xsl:element name=&quot;m:hideBot&quot;&gt;&#x000A;                        &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;                      &lt;/xsl:element&gt;&#x000A;                    &lt;/xsl:if&gt;&#x000A;                    &lt;xsl:if test=&quot;$fLeft=0&quot;&gt;&#x000A;                      &lt;xsl:element name=&quot;m:hideLeft&quot;&gt;&#x000A;                        &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;                      &lt;/xsl:element&gt;&#x000A;                    &lt;/xsl:if&gt;&#x000A;                    &lt;xsl:if test=&quot;$fRight=0&quot;&gt;&#x000A;                      &lt;xsl:element name=&quot;m:hideRight&quot;&gt;&#x000A;                        &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;                      &lt;/xsl:element&gt;&#x000A;                    &lt;/xsl:if&gt;&#x000A;                  &lt;/xsl:if&gt;&#x000A;                  &lt;xsl:if test=&quot;$fStrikeH=1&quot;&gt;&#x000A;                    &lt;xsl:element name=&quot;m:strikeH&quot;&gt;&#x000A;                      &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;                    &lt;/xsl:element&gt;&#x000A;                  &lt;/xsl:if&gt;&#x000A;                  &lt;xsl:if test=&quot;$fStrikeV=1&quot;&gt;&#x000A;                    &lt;xsl:element name=&quot;m:strikeV&quot;&gt;&#x000A;                      &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;                    &lt;/xsl:element&gt;&#x000A;                  &lt;/xsl:if&gt;&#x000A;                  &lt;xsl:if test=&quot;$fStrikeBLTR=1&quot;&gt;&#x000A;                    &lt;xsl:element name=&quot;m:strikeBLTR&quot;&gt;&#x000A;                      &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;                    &lt;/xsl:element&gt;&#x000A;                  &lt;/xsl:if&gt;&#x000A;                  &lt;xsl:if test=&quot;$fStrikeTLBR=1&quot;&gt;&#x000A;                    &lt;xsl:element name=&quot;m:strikeTLBR&quot;&gt;&#x000A;                      &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;                    &lt;/xsl:element&gt;&#x000A;                  &lt;/xsl:if&gt;&#x000A;                &lt;/xsl:element&gt;&#x000A;              &lt;/xsl:if&gt;&#x000A;              &lt;xsl:element name=&quot;m:e&quot;&gt;&#x000A;                &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                &lt;xsl:apply-templates select=&quot;*&quot; /&gt;&#x000A;              &lt;/xsl:element&gt;&#x000A;            &lt;/xsl:element&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: CreateArgProp&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;CreateArgProp&quot;&gt;&#x000A;    &lt;xsl:if test=&quot;not(count(ancestor-or-self::mml:mstyle[@scriptlevel=&#39;0&#39; or @scriptlevel=&#39;1&#39; or @scriptlevel=&#39;2&#39;])=0)&#x000A;                  or not(count(ancestor-or-self::mml:mstyle[@mml:scriptlevel=&#39;0&#39; or @mml:scriptlevel=&#39;1&#39; or @mml:scriptlevel=&#39;2&#39;])=0)&quot;&gt;&#x000A;      &lt;xsl:element name=&quot;m:argPr&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:scrLvl&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;            &lt;xsl:choose&gt;&#x000A;              &lt;xsl:when test=&quot;ancestor-or-self::mml:mstyle[@scriptlevel][1]/@scriptlevel&quot;&gt;&#x000A;                &lt;xsl:value-of select=&quot;ancestor-or-self::mml:mstyle[@scriptlevel][1]/@scriptlevel&quot;/&gt;&#x000A;              &lt;/xsl:when&gt;&#x000A;              &lt;xsl:otherwise&gt;&#x000A;                &lt;xsl:value-of select=&quot;ancestor-or-self::mml:mstyle[@scriptlevel][1]/@mml:scriptlevel&quot;/&gt;&#x000A;              &lt;/xsl:otherwise&gt;&#x000A;            &lt;/xsl:choose&gt;&#x000A;          &lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;    &lt;/xsl:if&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: match mroot&#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;mml:mroot&quot;&gt;&#x000A;    &lt;xsl:element name=&quot;m:rad&quot;&gt;&#x000A;      &lt;xsl:element name=&quot;m:radPr&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:degHide&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;off&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;      &lt;xsl:element name=&quot;m:deg&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;      &lt;xsl:element name=&quot;m:e&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;    &lt;/xsl:element&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- MathML has no concept of a linear fraction.  When transforming a linear fraction&#x000A;       from Omml to MathML, we create the following MathML:&#x000A;       &#x000A;       &lt;mml:mrow&gt;&#x000A;         &lt;mml:mrow&gt;&#x000A;            // numerator&#x000A;         &lt;/mml:mrow&gt;&#x000A;         &lt;mml:mo&gt;/&lt;/mml:mo&gt;&#x000A;         &lt;mml:mrow&gt;&#x000A;            // denominator&#x000A;         &lt;/mml:mrow&gt;&#x000A;       &lt;/mml:mrow&gt;&#x000A;       &#x000A;       This template looks for four things:&#x000A;          1.  ndCur is an mml:mrow&#x000A;          2.  ndCur has three children&#x000A;          3.  The second child is an &lt;mml:mo&gt;&#x000A;          4.  The second child&#39;s text is &#39;/&#39;&#x000A;       &#x000A;       --&gt;&#x000A;  &lt;xsl:template name=&quot;FLinearFrac&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:variable name=&quot;sNdText&quot;&gt;&#x000A;      &lt;xsl:value-of select=&quot;normalize-space($ndCur/*[2])&quot;/&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- I spy a linear fraction --&gt;&#x000A;      &lt;xsl:when test=&quot;$ndCur/self::mml:mrow&#x000A;                      and count($ndCur/*)=3&#x000A;                      and $ndCur/*[2][self::mml:mo]&#x000A;                      and $sNdText=&#39;/&#39;&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- Though presentation mathml can certainly typeset any generic function with the&#x000A;	     appropriate function operator spacing, presentation MathML has no concept of &#x000A;			 a function structure like omml does.  In order to preserve the omml &lt;func&gt; &#x000A;			 element, we must establish how an omml &lt;func&gt; element looks in mml.  This &#x000A;			 is shown below:&#x000A;       &#x000A;       &lt;mml:mrow&gt;&#x000A;         &lt;mml:mrow&gt;&#x000A;            // function name&#x000A;         &lt;/mml:mrow&gt;&#x000A;         &lt;mml:mo&gt;&amp;#x02061;&lt;/mml:mo&gt;&#x000A;         &lt;mml:mrow&gt;&#x000A;            // function argument&#x000A;         &lt;/mml:mrow&gt;&#x000A;       &lt;/mml:mrow&gt;&#x000A;       &#x000A;       This template looks for six things to be true:&#x000A;					1.  ndCur is an mml:mrow&#x000A;					2.  ndCur has three children&#x000A;					3.  The first child is an &lt;mml:mrow&gt;&#x000A;					4.  The second child is an &lt;mml:mo&gt;&#x000A;					5.  The third child is an &lt;mml:mrow&gt;&#x000A;					6.  The second child&#39;s text is &#39;&amp;#x02061;&#39;&#x000A;       --&gt;&#x000A;  &lt;xsl:template name=&quot;FIsFunc&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:variable name=&quot;sNdText&quot;&gt;&#x000A;      &lt;xsl:value-of select=&quot;normalize-space($ndCur/*[2])&quot;/&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- Is this an omml function --&gt;&#x000A;      &lt;xsl:when test=&quot;count($ndCur/*)=3&#x000A;								      and $ndCur/self::*[self::mml:mrow]&#x000A;                      and $ndCur/*[2][self::mml:mo]&#x000A;                      and $sNdText=&#39;&amp;#x02061;&#39;&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- Given the node of the linear fraction&#39;s parent mrow, &#x000A;       make a linear fraction --&gt;&#x000A;  &lt;xsl:template name=&quot;MakeLinearFraction&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:element name=&quot;m:f&quot;&gt;&#x000A;      &lt;xsl:element name=&quot;m:fPr&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:type&quot;&gt;&#x000A;          &lt;xsl:attribute name=&quot;m:val&quot;&gt;lin&lt;/xsl:attribute&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;      &lt;xsl:element name=&quot;m:num&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;$ndCur/*[1]&quot; /&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;      &lt;xsl:element name=&quot;m:den&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;$ndCur/*[3]&quot; /&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;    &lt;/xsl:element&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- Given the node of the function&#39;s parent mrow, &#x000A;       make an omml function --&gt;&#x000A;  &lt;xsl:template name=&quot;WriteFunc&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:element name=&quot;m:func&quot;&gt;&#x000A;      &lt;xsl:element name=&quot;m:fName&quot;&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;$ndCur/child::*[1]&quot; /&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;      &lt;xsl:element name=&quot;m:e&quot;&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;$ndCur/child::*[3]&quot; /&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;    &lt;/xsl:element&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- MathML doesn&#39;t have the concept of nAry structures.  The best approximation&#x000A;       to these is to have some under/over or sub/sup followed by an mrow or mstyle.&#x000A;       &#x000A;       In the case that we&#39;ve come across some under/over or sub/sup that contains an &#x000A;       nAry operator, this function handles the following sibling to the nAry structure.&#x000A;       &#x000A;       If the following sibling is:&#x000A;       &#x000A;          mml:mstyle, then apply templates to the children of this mml:mstyle&#x000A;          &#x000A;          mml:mrow, determine if this mrow is a linear fraction &#x000A;          (see comments for FlinearFrac template).&#x000A;              If so, make an Omml linear fraction.&#x000A;              If not, apply templates as was done for mml:mstyle.&#x000A;       &#x000A;       --&gt;&#x000A;  &lt;xsl:template name=&quot;NaryHandleMrowMstyle&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;!-- if the next sibling is an mrow, pull it in by &#x000A;							doing whatever we would have done to its children. &#x000A;							The mrow itself will be skipped, see template above. --&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$ndCur[self::mml:mrow]&quot;&gt;&#x000A;        &lt;!-- Check for linear fraction --&gt;&#x000A;        &lt;xsl:variable name=&quot;fLinearFrac&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FLinearFrac&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndCur&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$fLinearFrac=1&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;MakeLinearFraction&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndCur&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;xsl:variable name=&quot;fFunc&quot;&gt;&#x000A;              &lt;xsl:call-template name=&quot;FIsFunc&quot;&gt;&#x000A;                &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;              &lt;/xsl:call-template&gt;&#x000A;            &lt;/xsl:variable&gt;&#x000A;            &lt;xsl:choose&gt;&#x000A;              &lt;xsl:when test=&quot;$fFunc=1&quot;&gt;&#x000A;                &lt;xsl:call-template name=&quot;WriteFunc&quot;&gt;&#x000A;                  &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;                &lt;/xsl:call-template&gt;&#x000A;              &lt;/xsl:when&gt;&#x000A;              &lt;xsl:otherwise&gt;&#x000A;                &lt;xsl:apply-templates select=&quot;$ndCur/*&quot; /&gt;&#x000A;              &lt;/xsl:otherwise&gt;&#x000A;            &lt;/xsl:choose&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;$ndCur[self::mml:mstyle]&quot;&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;$ndCur/*&quot; /&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- MathML munder/mover can represent several Omml constructs &#x000A;       (m:bar, m:limLow, m:limUpp, m:acc, m:groupChr, etc.).  The following &#x000A;       templates (FIsBar, FIsAcc, and FIsGroupChr) are used to determine &#x000A;			 which of these Omml constructs an munder/mover should be translated into. --&gt;&#x000A;&#x000A;  &lt;!-- Note:  ndCur should only be an munder/mover MathML element.&#x000A;  &#x000A;       ndCur should be interpretted as an m:bar if&#x000A;          1)  its respective accent attribute is not true&#x000A;          2)  its second child is an mml:mo&#x000A;          3)  the character of the mml:mo is the correct under/over bar. --&gt;&#x000A;  &lt;xsl:template name=&quot;FIsBar&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; /&gt;&#x000A;    &lt;xsl:variable name=&quot;fUnder&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$ndCur[self::mml:munder]&quot;&gt;1&lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;sLowerCaseAccent&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$fUnder=1&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndCur/@accentunder&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/@accentunder, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/@mml:accentunder, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndCur/@accent&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/@accent, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/@mml:accent, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;fAccent&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$sLowerCaseAccent=&#39;true&#39;&quot;&gt;1&lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- The script is unaccented and the second child is an mo --&gt;&#x000A;      &lt;xsl:when test=&quot;$fAccent = 0 &#x000A;                      and $ndCur/child::*[2]/self::mml:mo&quot;&gt;&#x000A;        &lt;xsl:variable name=&quot;sOperator&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$ndCur/child::*[2]&quot; /&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;!-- Should we write an underbar? --&gt;&#x000A;          &lt;xsl:when test=&quot;$fUnder = 1&quot;&gt;&#x000A;            &lt;xsl:choose&gt;&#x000A;              &lt;xsl:when test=&quot;$sOperator = &#39;&amp;#x0332;&#39; or $sOperator = &#39;&amp;#x005F;&#39;&quot;&gt;1&lt;/xsl:when&gt;&#x000A;              &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;            &lt;/xsl:choose&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;!-- Should we write an overbar? --&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;xsl:choose&gt;&#x000A;              &lt;xsl:when test=&quot;$sOperator = &#39;&amp;#x0305;&#39; or $sOperator = &#39;&amp;#x00AF;&#39;&quot;&gt;1&lt;/xsl:when&gt;&#x000A;              &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;            &lt;/xsl:choose&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- Note:  ndCur should only be an mover MathML element.&#x000A;  &#x000A;       ndCur should be interpretted as an m:acc if&#x000A;          1)  its accent attribute is true&#x000A;          2)  its second child is an mml:mo&#x000A;          3)  there is only zero or one character in the mml:mo --&gt;&#x000A;  &lt;xsl:template name=&quot;FIsAcc&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;sLowerCaseAccent&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$ndCur/@accent&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;translate($ndCur/@accent, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;translate($ndCur/@mml:accent, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;sLowerCaseMoAccent&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$ndCur/child::*[2] = mml:mo and $ndCur/child::*[2]/@accent&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;translate($ndCur/child::*[2]/@accent, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:when test=&quot;$ndCur/child::*[2] = mml:mo and $ndCur/child::*[2]/@mml:accent&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;translate($ndCur/child::*[2]/@mml:accent, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;fAccent&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$sLowerCaseMoAccent=&#39;true&#39; or ($sLowerCaseMoAccent=&#39;&#39; and $sLowerCaseAccent=&#39;true&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- The script is accented and the second child is an mo --&gt;&#x000A;      &lt;xsl:when test=&quot;$fAccent = 1 &#x000A;                      and $ndCur/child::*[2] = mml:mo&quot;&gt;&#x000A;        &lt;xsl:variable name=&quot;sOperator&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$ndCur/child::*[2]&quot; /&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;!-- There is only one operator, this is a valid Omml accent! --&gt;&#x000A;          &lt;xsl:when test=&quot;string-length($sOperator) &amp;lt;= 1&quot;&gt;1&lt;/xsl:when&gt;&#x000A;          &lt;!-- More than one accented operator.  This isn&#39;t a valid&#x000A;               omml accent --&gt;&#x000A;          &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;!-- Not accented, not an operator, or both, but in any case, this is&#x000A;           not an Omml accent. --&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- Is ndCur a groupChr? &#x000A;			 ndCur is a groupChr if:&#x000A;			 &#x000A;				 1.  The accent is false (note:  accent attribute &#x000A;						 for munder is accentunder). &#x000A;				 2.  ndCur is an munder or mover.&#x000A;				 3.  ndCur has two children&#x000A;				 4.  Of these two children, one is an mml:mo and the other is an mml:mrow&#x000A;				 5.  The number of characters in the mml:mo is 1.&#x000A;			 &#x000A;			 If all of the above are true, then return 1, else return 0.&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;FIsGroupChr&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:variable name=&quot;fUnder&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$ndCur[self::mml:munder]&quot;&gt;1&lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;sLowerCaseAccent&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$fUnder=1&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndCur/@accentunder&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/@accentunder, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/@mml:accentunder, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndCur/@accent&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/@accent, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/@mml:accent, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;fAccentFalse&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$sLowerCaseAccent=&#39;false&#39;&quot;&gt;1&lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$fAccentFalse=1&#x000A;                      and $ndCur[self::mml:munder or self::mml:mover] &#x000A;                      and count($ndCur/child::*)=2 &#x000A;                      and (($ndCur/child::*[1][self::mml:mrow] and $ndCur/child::*[2][self::mml:mo]) &#x000A;                            or ($ndCur/child::*[1][self::mml:mo] and $ndCur/child::*[2][self::mml:mrow]))&quot;&gt;&#x000A;        &lt;xsl:variable name=&quot;sOperator&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$ndCur/child::mml:mo&quot; /&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;string-length($sOperator) &amp;lt;= 1&quot;&gt;1&lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- %%Template: match munder&#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;mml:munder&quot;&gt;&#x000A;    &lt;xsl:variable name=&quot;fNary&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;isNary&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;child::*[1]&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$fNary=&#39;true&#39;&quot;&gt;&#x000A;        &lt;m:nary&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreateNaryProp&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;chr&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;normalize-space(child::*[1])&quot; /&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;sMathmlType&quot; select=&quot;&#39;munder&#39;&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;          &lt;m:sub&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;          &lt;/m:sub&gt;&#x000A;          &lt;m:sup&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;          &lt;/m:sup&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:call-template name=&quot;NaryHandleMrowMstyle&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;following-sibling::*[1]&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/m:e&gt;&#x000A;        &lt;/m:nary&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;!-- Should this munder be interpreted as an OMML m:bar? --&gt;&#x000A;        &lt;xsl:variable name=&quot;fIsBar&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FIsBar&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$fIsBar=1&quot;&gt;&#x000A;            &lt;m:bar&gt;&#x000A;              &lt;m:barPr&gt;&#x000A;                &lt;m:pos m:val=&quot;bot&quot; /&gt;&#x000A;              &lt;/m:barPr&gt;&#x000A;              &lt;m:e&gt;&#x000A;                &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;              &lt;/m:e&gt;&#x000A;            &lt;/m:bar&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;!-- It isn&#39;t an integral or underbar, is this a groupChr? --&gt;&#x000A;            &lt;xsl:variable name=&quot;fGroupChr&quot;&gt;&#x000A;              &lt;xsl:call-template name=&quot;FIsGroupChr&quot;&gt;&#x000A;                &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;              &lt;/xsl:call-template&gt;&#x000A;            &lt;/xsl:variable&gt;&#x000A;            &lt;xsl:choose&gt;&#x000A;              &lt;xsl:when test=&quot;$fGroupChr=1&quot;&gt;&#x000A;                &lt;xsl:element name=&quot;m:groupChr&quot;&gt;&#x000A;                  &lt;xsl:call-template name=&quot;CreateGroupChrPr&quot;&gt;&#x000A;                    &lt;xsl:with-param name=&quot;chr&quot;&gt;&#x000A;                      &lt;xsl:value-of select=&quot;mml:mo&quot; /&gt;&#x000A;                    &lt;/xsl:with-param&gt;&#x000A;                    &lt;xsl:with-param name=&quot;pos&quot;&gt;&#x000A;                      &lt;xsl:choose&gt;&#x000A;                        &lt;xsl:when test=&quot;child::*[1][self::mml:mrow]&quot;&gt;bot&lt;/xsl:when&gt;&#x000A;                        &lt;xsl:otherwise&gt;top&lt;/xsl:otherwise&gt;&#x000A;                      &lt;/xsl:choose&gt;&#x000A;                    &lt;/xsl:with-param&gt;&#x000A;                    &lt;xsl:with-param name=&quot;vertJc&quot;&gt;top&lt;/xsl:with-param&gt;&#x000A;                  &lt;/xsl:call-template&gt;&#x000A;                  &lt;xsl:element name=&quot;m:e&quot;&gt;&#x000A;                    &lt;xsl:apply-templates select=&quot;mml:mrow&quot; /&gt;&#x000A;                  &lt;/xsl:element&gt;&#x000A;                &lt;/xsl:element&gt;&#x000A;              &lt;/xsl:when&gt;&#x000A;              &lt;xsl:otherwise&gt;&#x000A;                &lt;!-- Generic munder --&gt;&#x000A;                &lt;xsl:element name=&quot;m:limLow&quot;&gt;&#x000A;                  &lt;xsl:element name=&quot;m:e&quot;&gt;&#x000A;                    &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                    &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;                  &lt;/xsl:element&gt;&#x000A;                  &lt;xsl:element name=&quot;m:lim&quot;&gt;&#x000A;                    &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                    &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;                  &lt;/xsl:element&gt;&#x000A;                &lt;/xsl:element&gt;&#x000A;              &lt;/xsl:otherwise&gt;&#x000A;            &lt;/xsl:choose&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- Given the values for chr, pos, and vertJc, create an omml&#x000A;	     groupChr&#39;s groupChrPr --&gt;&#x000A;  &lt;xsl:template name=&quot;CreateGroupChrPr&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;chr&quot;&gt;&amp;#x23df;&lt;/xsl:param&gt;&#x000A;    &lt;xsl:param name=&quot;pos&quot; select=&quot;bot&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;vertJc&quot; select=&quot;top&quot; /&gt;&#x000A;    &lt;xsl:element name=&quot;m:groupChrPr&quot;&gt;&#x000A;      &lt;xsl:element name=&quot;m:chr&quot;&gt;&#x000A;        &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$chr&quot;/&gt;&#x000A;        &lt;/xsl:attribute&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;      &lt;xsl:element name=&quot;m:pos&quot;&gt;&#x000A;        &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$pos&quot;/&gt;&#x000A;        &lt;/xsl:attribute&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;      &lt;xsl:element name=&quot;m:vertJc&quot;&gt;&#x000A;        &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$vertJc&quot;/&gt;&#x000A;        &lt;/xsl:attribute&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;    &lt;/xsl:element&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!--&#x000A;      Convert a non-combining character into its upper combining&#x000A;      couterpart.&#x000A;      &#x000A;      { Non-combining, Upper-combining }&#x000A;      {U+02D8, U+0306}, // BREVE&#x000A;      {U+00B8, U+0312}, // CEDILLA&#x000A;      {U+0060, U+0300}, // GRAVE ACCENT&#x000A;      {U+002D, U+0305}, // HYPHEN-MINUS/OVERLINE&#x000A;      {U+2212, U+0305}, // MINUS SIGN/OVERLINE&#x000A;      {U+002E, U+0305}, // FULL STOP/DOT ABOVE&#x000A;      {U+02D9, U+0307}, // DOT ABOVE&#x000A;      {U+02DD, U+030B}, // DOUBLE ACUTE ACCENT&#x000A;      {U+00B4, U+0301}, // ACUTE ACCENT&#x000A;      {U+007E, U+0303}, // TILDE&#x000A;      {U+02DC, U+0303}, // SMALL TILDE&#x000A;      {U+00A8, U+0308}, // DIAERESIS&#x000A;      {U+02C7, U+030C}, // CARON&#x000A;      {U+005E, U+0302}, // CIRCUMFLEX ACCENT&#x000A;      {U+00AF, U+0305}, // MACRON&#x000A;      {U+005F, ::::::}, // LOW LINE&#x000A;      {U+2192, U+20D7}, // RIGHTWARDS ARROW&#x000A;      {U+27F6, U+20D7}, // LONG RIGHTWARDS ARROW&#x000A;      {U+2190, U+20D6}, // LEFT ARROW&#x000A;  --&gt;&#x000A;  &lt;xsl:template name=&quot;ToUpperCombining&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ch&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- BREVE --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x02D8;&#39;&quot;&gt;&amp;#x0306;&lt;/xsl:when&gt;&#x000A;      &lt;!-- CEDILLA --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x00B8;&#39;&quot;&gt;&amp;#x0312;&lt;/xsl:when&gt;&#x000A;      &lt;!-- GRAVE ACCENT --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x0060;&#39;&quot;&gt;&amp;#x0300;&lt;/xsl:when&gt;&#x000A;      &lt;!-- HYPHEN-MINUS/OVERLINE --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x002D;&#39;&quot;&gt;&amp;#x0305;&lt;/xsl:when&gt;&#x000A;      &lt;!-- MINUS SIGN/OVERLINE --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x2212;&#39;&quot;&gt;&amp;#x0305;&lt;/xsl:when&gt;&#x000A;      &lt;!-- FULL STOP/DOT ABOVE --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x002E;&#39;&quot;&gt;&amp;#x0307;&lt;/xsl:when&gt;&#x000A;      &lt;!-- DOT ABOVE --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x02D9;&#39;&quot;&gt;&amp;#x0307;&lt;/xsl:when&gt;&#x000A;      &lt;!-- DOUBLE ACUTE ACCENT --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x02DD;&#39;&quot;&gt;&amp;#x030B;&lt;/xsl:when&gt;&#x000A;      &lt;!-- ACUTE ACCENT --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x00B4;&#39;&quot;&gt;&amp;#x0301;&lt;/xsl:when&gt;&#x000A;      &lt;!-- TILDE --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x007E;&#39;&quot;&gt;&amp;#x0303;&lt;/xsl:when&gt;&#x000A;      &lt;!-- SMALL TILDE --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x02DC;&#39;&quot;&gt;&amp;#x0303;&lt;/xsl:when&gt;&#x000A;      &lt;!-- DIAERESIS --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x00A8;&#39;&quot;&gt;&amp;#x0308;&lt;/xsl:when&gt;&#x000A;      &lt;!-- CARON --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x02C7;&#39;&quot;&gt;&amp;#x030C;&lt;/xsl:when&gt;&#x000A;      &lt;!-- CIRCUMFLEX ACCENT --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x005E;&#39;&quot;&gt;&amp;#x0302;&lt;/xsl:when&gt;&#x000A;      &lt;!-- MACRON --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x00AF;&#39;&quot;&gt;&amp;#x0305;&lt;/xsl:when&gt;&#x000A;      &#x000A;      &lt;!-- LOW LINE --&gt;&#x000A;      &#x000A;      &lt;!-- RIGHTWARDS ARROW --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x2192;&#39;&quot;&gt;&amp;#x20D7;&lt;/xsl:when&gt;&#x000A;      &lt;!-- LONG RIGHTWARDS ARROW --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x27F6;&#39;&quot;&gt;&amp;#x20D7;&lt;/xsl:when&gt;&#x000A;      &lt;!-- LEFT ARROW --&gt;&#x000A;      &lt;xsl:when test=&quot;$ch=&#39;&amp;#x2190;&#39;&quot;&gt;&amp;#x20D6;&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:value-of select=&quot;$ch&quot;/&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- %%Template: match mover&#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;mml:mover&quot;&gt;&#x000A;    &lt;xsl:variable name=&quot;fNary&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;isNary&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;child::*[1]&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$fNary=&#39;true&#39;&quot;&gt;&#x000A;        &lt;m:nary&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreateNaryProp&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;chr&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;normalize-space(child::*[1])&quot; /&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;sMathmlType&quot; select=&quot;&#39;mover&#39;&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;          &lt;m:sub&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;          &lt;/m:sub&gt;&#x000A;          &lt;m:sup&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;          &lt;/m:sup&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:call-template name=&quot;NaryHandleMrowMstyle&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;following-sibling::*[1]&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/m:e&gt;&#x000A;        &lt;/m:nary&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;!-- Should this munder be interpreted as an OMML m:bar or m:acc? --&gt;&#x000A;&#x000A;        &lt;!-- Check to see if this is an m:bar --&gt;&#x000A;        &lt;xsl:variable name=&quot;fIsBar&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FIsBar&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$fIsBar = 1&quot;&gt;&#x000A;            &lt;m:bar&gt;&#x000A;              &lt;m:barPr&gt;&#x000A;                &lt;m:pos m:val=&quot;top&quot; /&gt;&#x000A;              &lt;/m:barPr&gt;&#x000A;              &lt;m:e&gt;&#x000A;                &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;              &lt;/m:e&gt;&#x000A;            &lt;/m:bar&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;!-- Not an m:bar, should it be an m:acc? --&gt;&#x000A;            &lt;xsl:variable name=&quot;fIsAcc&quot;&gt;&#x000A;              &lt;xsl:call-template name=&quot;FIsAcc&quot;&gt;&#x000A;                &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;              &lt;/xsl:call-template&gt;&#x000A;            &lt;/xsl:variable&gt;&#x000A;            &lt;xsl:choose&gt;&#x000A;              &lt;xsl:when test=&quot;$fIsAcc=1&quot;&gt;&#x000A;                &lt;m:acc&gt;&#x000A;                  &lt;m:accPr&gt;&#x000A;                    &lt;m:chr&gt;&#x000A;                      &lt;xsl:variable name=&quot;ch&quot;&gt;&#x000A;                        &lt;xsl:value-of select=&quot;child::*[2]&quot; /&gt;&#x000A;                      &lt;/xsl:variable&gt;&#x000A;                      &lt;xsl:variable name=&quot;chComb&quot;&gt;&#x000A;                        &lt;xsl:call-template name=&quot;ToUpperCombining&quot;&gt;&#x000A;                          &lt;xsl:with-param name=&quot;ch&quot; select=&quot;$ch&quot; /&gt;&#x000A;                        &lt;/xsl:call-template&gt;&#x000A;                      &lt;/xsl:variable&gt;&#x000A;                      &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;                        &lt;xsl:value-of select=&quot;$chComb&quot; /&gt;&#x000A;                      &lt;/xsl:attribute&gt;&#x000A;                    &lt;/m:chr&gt;&#x000A;                  &lt;/m:accPr&gt;&#x000A;                  &lt;m:e&gt;&#x000A;                    &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                    &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;                  &lt;/m:e&gt;&#x000A;                &lt;/m:acc&gt;&#x000A;              &lt;/xsl:when&gt;&#x000A;              &lt;xsl:otherwise&gt;&#x000A;                &lt;!-- This isn&#39;t an integral, overbar or accent, &#x000A;								     could it be a groupChr? --&gt;&#x000A;                &lt;xsl:variable name=&quot;fGroupChr&quot;&gt;&#x000A;                  &lt;xsl:call-template name=&quot;FIsGroupChr&quot;&gt;&#x000A;                    &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;                  &lt;/xsl:call-template&gt;&#x000A;                &lt;/xsl:variable&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;$fGroupChr=1&quot;&gt;&#x000A;                    &lt;xsl:element name=&quot;m:groupChr&quot;&gt;&#x000A;                      &lt;xsl:call-template name=&quot;CreateGroupChrPr&quot;&gt;&#x000A;                        &lt;xsl:with-param name=&quot;chr&quot;&gt;&#x000A;                          &lt;xsl:value-of select=&quot;mml:mo&quot; /&gt;&#x000A;                        &lt;/xsl:with-param&gt;&#x000A;                        &lt;xsl:with-param name=&quot;pos&quot;&gt;&#x000A;                          &lt;xsl:choose&gt;&#x000A;                            &lt;xsl:when test=&quot;child::*[1][self::mml:mrow]&quot;&gt;top&lt;/xsl:when&gt;&#x000A;                            &lt;xsl:otherwise&gt;bot&lt;/xsl:otherwise&gt;&#x000A;                          &lt;/xsl:choose&gt;&#x000A;                        &lt;/xsl:with-param&gt;&#x000A;                        &lt;xsl:with-param name=&quot;vertJc&quot;&gt;bot&lt;/xsl:with-param&gt;&#x000A;                      &lt;/xsl:call-template&gt;&#x000A;                      &lt;xsl:element name=&quot;m:e&quot;&gt;&#x000A;                        &lt;xsl:apply-templates select=&quot;mml:mrow&quot; /&gt;&#x000A;                      &lt;/xsl:element&gt;&#x000A;                    &lt;/xsl:element&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;!-- Generic mover --&gt;&#x000A;                    &lt;xsl:element name=&quot;m:limUpp&quot;&gt;&#x000A;                      &lt;xsl:element name=&quot;m:e&quot;&gt;&#x000A;                        &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                        &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;                      &lt;/xsl:element&gt;&#x000A;                      &lt;xsl:element name=&quot;m:lim&quot;&gt;&#x000A;                        &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                        &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;                      &lt;/xsl:element&gt;&#x000A;                    &lt;/xsl:element&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:otherwise&gt;&#x000A;            &lt;/xsl:choose&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- %%Template: match munderover&#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;mml:munderover&quot;&gt;&#x000A;    &lt;xsl:variable name=&quot;fNary&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;isNary&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;child::*[1]&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$fNary=&#39;true&#39;&quot;&gt;&#x000A;        &lt;m:nary&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreateNaryProp&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;chr&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;normalize-space(child::*[1])&quot; /&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;sMathmlType&quot; select=&quot;&#39;munderover&#39;&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;          &lt;m:sub&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;          &lt;/m:sub&gt;&#x000A;          &lt;m:sup&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[3]&quot; /&gt;&#x000A;          &lt;/m:sup&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:call-template name=&quot;NaryHandleMrowMstyle&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;following-sibling::*[1]&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/m:e&gt;&#x000A;        &lt;/m:nary&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:element name=&quot;m:limUpp&quot;&gt;&#x000A;          &lt;xsl:element name=&quot;m:e&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:element name=&quot;m:limLow&quot;&gt;&#x000A;              &lt;xsl:element name=&quot;m:e&quot;&gt;&#x000A;                &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;              &lt;/xsl:element&gt;&#x000A;              &lt;xsl:element name=&quot;m:lim&quot;&gt;&#x000A;                &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;              &lt;/xsl:element&gt;&#x000A;            &lt;/xsl:element&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;          &lt;xsl:element name=&quot;m:lim&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[3]&quot; /&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: match mfenced --&gt;&#x000A;  &lt;xsl:template match=&quot;mml:mfenced&quot;&gt;&#x000A;    &lt;m:d&gt;&#x000A;      &lt;xsl:call-template name=&quot;CreateDelimProp&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;fChOpenValid&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;@open&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;1&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:when test=&quot;@mml:open&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;1&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;0&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;chOpen&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;@open&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;@open&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;@mml:open&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;fChSeparatorsValid&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;@separators&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;1&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:when test=&quot;@mml:separators&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;1&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;0&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;chSeparators&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;@separators&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;@separators&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;@mml:separators&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;fChCloseValid&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;@close&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;1&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:when test=&quot;@mml:close&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;1&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;0&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;        &lt;xsl:with-param name=&quot;chClose&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;@close&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;@close&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;@mml:close&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:with-param&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;      &lt;xsl:for-each select=&quot;*&quot;&gt;&#x000A;        &lt;m:e&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;          &lt;xsl:apply-templates select=&quot;.&quot;/&gt;&#x000A;        &lt;/m:e&gt;&#x000A;      &lt;/xsl:for-each&gt;&#x000A;    &lt;/m:d&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: CreateDelimProp&#x000A;	&#x000A;		Given the characters to use as open, close and separators for &#x000A;		the delim object, create the m:dPr (delim properties). 		&#x000A;		&#x000A;		MathML can have any number of separators in an mfenced object, but &#x000A;		OMML can only represent one separator for each d (delim) object.&#x000A;		So, we pick the first separator specified. 		&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;CreateDelimProp&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;fChOpenValid&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;chOpen&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fChSeparatorsValid&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;chSeparators&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fChCloseValid&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;chClose&quot; /&gt;&#x000A;    &lt;xsl:variable name=&quot;chSep&quot; select=&quot;substring($chSeparators, 1, 1)&quot; /&gt;&#x000A;&#x000A;    &lt;!-- do we need a dPr at all? If everything&#39;s at its default value, then &#x000A;			don&#39;t bother at all --&gt;&#x000A;    &lt;xsl:if test=&quot;($fChOpenValid=1 and not($chOpen = &#39;(&#39;)) or&#x000A;						  ($fChCloseValid=1 and not($chClose = &#39;)&#39;)) or &#x000A;						  not($chSep = &#39;|&#39;)&quot;&gt;&#x000A;      &lt;m:dPr&gt;&#x000A;        &lt;!-- the default for MathML and OMML is &#39;(&#39;. --&gt;&#x000A;        &lt;xsl:if test=&quot;$fChOpenValid=1 and not($chOpen = &#39;(&#39;)&quot;&gt;&#x000A;          &lt;m:begChr&gt;&#x000A;            &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;$chOpen&quot; /&gt;&#x000A;            &lt;/xsl:attribute&gt;&#x000A;          &lt;/m:begChr&gt;&#x000A;        &lt;/xsl:if&gt;&#x000A;&#x000A;        &lt;!-- the default for MathML is &#39;,&#39; and for OMML is &#39;|&#39; --&gt;&#x000A;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;!-- matches OMML&#39;s default, don&#39;t bother to write anything out --&gt;&#x000A;          &lt;xsl:when test=&quot;$chSep = &#39;|&#39;&quot; /&gt;&#x000A;&#x000A;          &lt;!-- Not specified, use MathML&#39;s default. We test against &#x000A;					the existence of the actual attribute, not the substring --&gt;&#x000A;          &lt;xsl:when test=&quot;$fChSeparatorsValid=0&quot;&gt;&#x000A;            &lt;m:sepChr m:val=&#39;,&#39; /&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;m:sepChr&gt;&#x000A;              &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;                &lt;xsl:value-of select=&quot;$chSep&quot; /&gt;&#x000A;              &lt;/xsl:attribute&gt;&#x000A;            &lt;/m:sepChr&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;&#x000A;        &lt;!-- the default for MathML and OMML is &#39;)&#39;. --&gt;&#x000A;        &lt;xsl:if test=&quot;$fChCloseValid=1 and not($chClose = &#39;)&#39;)&quot;&gt;&#x000A;          &lt;m:endChr&gt;&#x000A;            &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;$chClose&quot; /&gt;&#x000A;            &lt;/xsl:attribute&gt;&#x000A;          &lt;/m:endChr&gt;&#x000A;        &lt;/xsl:if&gt;&#x000A;      &lt;/m:dPr&gt;&#x000A;    &lt;/xsl:if&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;xsl:template name=&quot;LQuoteFromMs&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;msCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;(not($msCur/@lquote) or $msCur/@lquote=&#39;&#39;)&#x000A;                      and (not($msCur/@mml:lquote) or $msCur/@mml:lquote=&#39;&#39;)&quot;&gt;&#x000A;        &lt;xsl:text&gt;&quot;&lt;/xsl:text&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$msCur/@lquote&quot;&gt;&#x000A;            &lt;xsl:value-of select=&quot;$msCur/@lquote&quot;/&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;xsl:value-of select=&quot;$msCur/@mml:lquote&quot;/&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;xsl:template name=&quot;RQuoteFromMs&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;msCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;(not($msCur/@rquote) or $msCur/@rquote=&#39;&#39;)&#x000A;                       and (not($msCur/@mml:rquote) or $msCur/@mml:rquote=&#39;&#39;)&quot;&gt;&#x000A;        &lt;xsl:text&gt;&quot;&lt;/xsl:text&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$msCur/@rquote&quot;&gt;&#x000A;            &lt;xsl:value-of select=&quot;$msCur/@rquote&quot;/&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;xsl:value-of select=&quot;$msCur/@mml:rquote&quot;/&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: OutputMs&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;OutputMs&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;msCur&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;chLquote&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;LQuoteFromMs&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;msCur&quot; select=&quot;$msCur&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;chRquote&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;RQuoteFromMs&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;msCur&quot; select=&quot;$msCur&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:value-of select=&quot;$chLquote&quot;/&gt;&#x000A;    &lt;xsl:value-of select=&quot;normalize-space($msCur)&quot; /&gt;&#x000A;    &lt;xsl:value-of select=&quot;$chRquote&quot;/&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: match msub&#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;mml:msub&quot;&gt;&#x000A;    &lt;xsl:variable name=&quot;fNary&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;isNary&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;child::*[1]&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$fNary=&#39;true&#39;&quot;&gt;&#x000A;        &lt;m:nary&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreateNaryProp&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;chr&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;normalize-space(child::*[1])&quot; /&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;sMathmlType&quot; select=&quot;&#39;msub&#39;&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;          &lt;m:sub&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;          &lt;/m:sub&gt;&#x000A;          &lt;m:sup&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;          &lt;/m:sup&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:call-template name=&quot;NaryHandleMrowMstyle&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;following-sibling::*[1]&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/m:e&gt;&#x000A;        &lt;/m:nary&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;m:sSub&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;          &lt;/m:e&gt;&#x000A;          &lt;m:sub&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;          &lt;/m:sub&gt;&#x000A;        &lt;/m:sSub&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: match msup&#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;mml:msup&quot;&gt;&#x000A;    &lt;xsl:variable name=&quot;fNary&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;isNary&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;child::*[1]&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$fNary=&#39;true&#39;&quot;&gt;&#x000A;        &lt;m:nary&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreateNaryProp&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;chr&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;normalize-space(child::*[1])&quot; /&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;sMathmlType&quot; select=&quot;&#39;msup&#39;&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;          &lt;m:sub&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;          &lt;/m:sub&gt;&#x000A;          &lt;m:sup&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;          &lt;/m:sup&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:call-template name=&quot;NaryHandleMrowMstyle&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;following-sibling::*[1]&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/m:e&gt;&#x000A;        &lt;/m:nary&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;m:sSup&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;          &lt;/m:e&gt;&#x000A;          &lt;m:sup&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;          &lt;/m:sup&gt;&#x000A;        &lt;/m:sSup&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: match msubsup&#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;mml:msubsup&quot;&gt;&#x000A;    &lt;xsl:variable name=&quot;fNary&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;isNary&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;child::*[1]&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$fNary=&#39;true&#39;&quot;&gt;&#x000A;        &lt;m:nary&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreateNaryProp&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;chr&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;normalize-space(child::*[1])&quot; /&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;sMathmlType&quot; select=&quot;&#39;msubsup&#39;&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;          &lt;m:sub&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;          &lt;/m:sub&gt;&#x000A;          &lt;m:sup&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[3]&quot; /&gt;&#x000A;          &lt;/m:sup&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:call-template name=&quot;NaryHandleMrowMstyle&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;following-sibling::*[1]&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/m:e&gt;&#x000A;        &lt;/m:nary&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;m:sSubSup&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;          &lt;/m:e&gt;&#x000A;          &lt;m:sub&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[2]&quot; /&gt;&#x000A;          &lt;/m:sub&gt;&#x000A;          &lt;m:sup&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[3]&quot; /&gt;&#x000A;          &lt;/m:sup&gt;&#x000A;        &lt;/m:sSubSup&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: SplitScripts &#x000A;	&#x000A;		Takes an collection of nodes, and splits them&#x000A;		odd and even into sup and sub scripts. Used for dealing with&#x000A;		mmultiscript.&#x000A;		&#x000A;		This template assumes you want to output both a sub and sup element.&#x000A;		--&gt;&#x000A;  &lt;xsl:template name=&quot;SplitScripts&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndScripts&quot; /&gt;&#x000A;    &lt;m:sub&gt;&#x000A;      &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;      &lt;xsl:apply-templates select=&quot;$ndScripts[(position() mod 2) = 1]&quot; /&gt;&#x000A;    &lt;/m:sub&gt;&#x000A;    &lt;m:sup&gt;&#x000A;      &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;      &lt;xsl:apply-templates select=&quot;$ndScripts[(position() mod 2) = 0]&quot; /&gt;&#x000A;    &lt;/m:sup&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- %%Template: match mmultiscripts&#x000A;	&#x000A;		There is some subtlety with the mml:mprescripts element. Everything that comes before &#x000A;		that is considered a script (as opposed to a pre-script), but it need not be present.&#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;mml:mmultiscripts&quot;&gt;&#x000A;&#x000A;    &lt;!-- count the nodes. Everything that comes after a mml:mprescripts is considered a pre-script;&#x000A;			Everything that does not have an mml:mprescript as a preceding-sibling (and is not itself &#x000A;			mml:mprescript) is a script, except for the first child which is always the base.&#x000A;			The mml:none element is a place holder for a sub/sup element slot.&#x000A;			&#x000A;			mmultisript pattern:&#x000A;			&lt;mmultiscript&gt;&#x000A;				(base)&#x000A;				(sub sup)* // Where &lt;none/&gt; can replace a sub/sup entry to preserve pattern.&#x000A;				&lt;mprescripts /&gt;&#x000A;				(presub presup)*&#x000A;			&lt;/mmultiscript&gt;&#x000A;			--&gt;&#x000A;    &lt;!-- Count of presecript nodes that we&#39;d print (this is essentially anything but the none placeholder. --&gt;&#x000A;    &lt;xsl:variable name=&quot;cndPrescriptStrict&quot; select=&quot;count(mml:mprescripts[1]/following-sibling::*[not(self::mml:none)])&quot; /&gt;&#x000A;    &lt;!-- Count of all super script excluding mml:none --&gt;&#x000A;    &lt;xsl:variable name=&quot;cndSuperScript&quot; select=&quot;count(*[not(preceding-sibling::mml:mprescripts)&#x000A;																														and not(self::mml:mprescripts)&#x000A;																														and ((position() mod 2) = 1) &#x000A;																														and not(self::mml:none)]) - 1&quot;/&gt;&#x000A;    &lt;!-- Count of all sup script excluding mml:none --&gt;&#x000A;    &lt;xsl:variable name=&quot;cndSubScript&quot; select=&quot;count(*[not(preceding-sibling::mml:mprescripts)&#x000A;																														and not(self::mml:mprescripts)&#x000A;																														and ((position() mod 2) = 0) &#x000A;																														and not(self::mml:none)])&quot;/&gt;&#x000A;    &lt;!-- Count of all scripts excluding mml:none --&gt;&#x000A;    &lt;xsl:variable name=&quot;cndScriptStrict&quot; select=&quot;$cndSuperScript + $cndSubScript&quot; /&gt;&#x000A;    &lt;!-- Count of all scripts including mml:none.  This is essentially all nodes before the &#x000A;		first mml:mprescripts except the base. --&gt;&#x000A;    &lt;xsl:variable name=&quot;cndScript&quot; select=&quot;count(*[not(preceding-sibling::mml:mprescripts) and not(self::mml:mprescripts)]) - 1&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- The easy case first. No prescripts, and no script ... just a base --&gt;&#x000A;      &lt;xsl:when test=&quot;$cndPrescriptStrict &amp;lt;= 0 and $cndScriptStrict &amp;lt;= 0&quot;&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;*[1]&quot; /&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;&#x000A;      &lt;!-- Next, if there are no prescripts --&gt;&#x000A;      &lt;xsl:when test=&quot;$cndPrescriptStrict &amp;lt;= 0&quot;&gt;&#x000A;        &lt;!-- we know we have some scripts or else we would have taken the earlier&#x000A;					  branch. --&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;!-- We have both sub and super scripts--&gt;&#x000A;          &lt;xsl:when test=&quot;$cndSuperScript &amp;gt; 0 and $cndSubScript &amp;gt; 0&quot;&gt;&#x000A;            &lt;m:sSubSup&gt;&#x000A;              &lt;m:e&gt;&#x000A;                &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;              &lt;/m:e&gt;&#x000A;&#x000A;              &lt;!-- Every child except the first is a script.  Do the split --&gt;&#x000A;              &lt;xsl:call-template name=&quot;SplitScripts&quot;&gt;&#x000A;                &lt;xsl:with-param name=&quot;ndScripts&quot; select=&quot;*[position() &amp;gt; 1]&quot; /&gt;&#x000A;              &lt;/xsl:call-template&gt;&#x000A;            &lt;/m:sSubSup&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;!-- Just a sub script --&gt;&#x000A;          &lt;xsl:when test=&quot;$cndSubScript &amp;gt; 0&quot;&gt;&#x000A;            &lt;m:sSub&gt;&#x000A;              &lt;m:e&gt;&#x000A;                &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;              &lt;/m:e&gt;&#x000A;&#x000A;              &lt;!-- No prescripts and no super scripts, therefore, it&#39;s a sub. --&gt;&#x000A;              &lt;m:sub&gt;&#x000A;                &lt;xsl:apply-templates select=&quot;*[position() &amp;gt; 1]&quot; /&gt;&#x000A;              &lt;/m:sub&gt;&#x000A;            &lt;/m:sSub&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;!-- Just super script --&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;m:sSup&gt;&#x000A;              &lt;m:e&gt;&#x000A;                &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;              &lt;/m:e&gt;&#x000A;&#x000A;              &lt;!-- No prescripts and no sub scripts, therefore, it&#39;s a sup. --&gt;&#x000A;              &lt;m:sup&gt;&#x000A;                &lt;xsl:apply-templates select=&quot;*[position() &amp;gt; 1]&quot; /&gt;&#x000A;              &lt;/m:sup&gt;&#x000A;            &lt;/m:sSup&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;&#x000A;      &lt;!-- Next, if there are no scripts --&gt;&#x000A;      &lt;xsl:when test=&quot;$cndScriptStrict &amp;lt;= 0&quot;&gt;&#x000A;        &lt;!-- we know we have some prescripts or else we would have taken the earlier&#x000A;					  branch. So, create an sPre and split the elements --&gt;&#x000A;        &lt;m:sPre&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;          &lt;/m:e&gt;&#x000A;&#x000A;          &lt;!-- The prescripts come after the mml:mprescript and if we get here&#x000A;							we know there exists some elements after the mml:mprescript element. &#x000A;							&#x000A;							The prescript element has no sub/subsup variation, therefore, even if&#x000A;							we&#39;re only writing sub, we need to write out both the sub and sup element.&#x000A;							--&gt;&#x000A;          &lt;xsl:call-template name=&quot;SplitScripts&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndScripts&quot; select=&quot;mml:mprescripts[1]/following-sibling::*&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/m:sPre&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;&#x000A;      &lt;!-- Finally, the case with both prescripts and scripts. Create an sPre &#x000A;				element to house the prescripts, with a sub/sup/subsup element at its base. --&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;m:sPre&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:choose&gt;&#x000A;              &lt;!-- We have both sub and super scripts--&gt;&#x000A;              &lt;xsl:when test=&quot;$cndSuperScript &amp;gt; 0 and $cndSubScript &amp;gt; 0&quot;&gt;&#x000A;                &lt;m:sSubSup&gt;&#x000A;                  &lt;m:e&gt;&#x000A;                    &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                    &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;                  &lt;/m:e&gt;&#x000A;&#x000A;                  &lt;!-- scripts come before the mml:mprescript but after the first child, so their&#x000A;								 positions will be 2, 3, ... ($nndScript + 1) --&gt;&#x000A;                  &lt;xsl:call-template name=&quot;SplitScripts&quot;&gt;&#x000A;                    &lt;xsl:with-param name=&quot;ndScripts&quot; select=&quot;*[(position() &amp;gt; 1) and (position() &amp;lt;= ($cndScript + 1))]&quot; /&gt;&#x000A;                  &lt;/xsl:call-template&gt;&#x000A;                &lt;/m:sSubSup&gt;&#x000A;              &lt;/xsl:when&gt;&#x000A;              &lt;!-- Just a sub script --&gt;&#x000A;              &lt;xsl:when test=&quot;$cndSubScript &amp;gt; 0&quot;&gt;&#x000A;                &lt;m:sSub&gt;&#x000A;                  &lt;m:e&gt;&#x000A;                    &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                    &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;                  &lt;/m:e&gt;&#x000A;&#x000A;                  &lt;!-- We have prescripts but no super scripts, therefore, do a sub &#x000A;									and apply templates to all tokens counted by cndScript. --&gt;&#x000A;                  &lt;m:sub&gt;&#x000A;                    &lt;xsl:apply-templates select=&quot;*[position() &amp;gt; 1 and (position() &amp;lt;= ($cndScript + 1))]&quot; /&gt;&#x000A;                  &lt;/m:sub&gt;&#x000A;                &lt;/m:sSub&gt;&#x000A;              &lt;/xsl:when&gt;&#x000A;              &lt;!-- Just super script --&gt;&#x000A;              &lt;xsl:otherwise&gt;&#x000A;                &lt;m:sSup&gt;&#x000A;                  &lt;m:e&gt;&#x000A;                    &lt;xsl:call-template name=&quot;CreateArgProp&quot; /&gt;&#x000A;                    &lt;xsl:apply-templates select=&quot;child::*[1]&quot; /&gt;&#x000A;                  &lt;/m:e&gt;&#x000A;&#x000A;                  &lt;!-- We have prescripts but no sub scripts, therefore, do a sub &#x000A;									and apply templates to all tokens counted by cndScript. --&gt;&#x000A;                  &lt;m:sup&gt;&#x000A;                    &lt;xsl:apply-templates select=&quot;*[position() &amp;gt; 1 and (position() &amp;lt;= ($cndScript + 1))]&quot; /&gt;&#x000A;                  &lt;/m:sup&gt;&#x000A;                &lt;/m:sSup&gt;&#x000A;              &lt;/xsl:otherwise&gt;&#x000A;            &lt;/xsl:choose&gt;&#x000A;          &lt;/m:e&gt;&#x000A;&#x000A;          &lt;!-- The prescripts come after the mml:mprescript and if we get here&#x000A;							we know there exists one such element --&gt;&#x000A;          &lt;xsl:call-template name=&quot;SplitScripts&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndScripts&quot; select=&quot;mml:mprescripts[1]/following-sibling::*&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/m:sPre&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- Template that determines if ndCur is an equation array.&#x000A;				&#x000A;			 ndCur is an equation array if:&#x000A;			 &#x000A;			 1.  There are are no frame lines&#x000A;			 2.  There are no column lines&#x000A;			 3.  There are no row lines&#x000A;			 4.  There is no row with more than 1 column  &#x000A;			 5.  There is no row with fewer than 1 column&#x000A;			 6.  There are no labeled rows.&#x000A;			 &#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;FIsEqArray&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;&#x000A;    &lt;!-- There should be no frame, columnlines, or rowlines --&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;(not($ndCur/@frame) or $ndCur/@frame=&#39;&#39; or $ndCur/@frame=&#39;none&#39;)&#x000A;                      and (not($ndCur/@mml:frame) or $ndCur/@mml:frame=&#39;&#39; or $ndCur/@mml:frame=&#39;none&#39;)&#x000A;								      and (not($ndCur/@columnlines) or $ndCur/@columnlines=&#39;&#39; or $ndCur/@columnlines=&#39;none&#39;)&#x000A;                      and (not($ndCur/@mml:columnlines) or $ndCur/@mml:columnlines=&#39;&#39; or $ndCur/@mml:columnlines=&#39;none&#39;)&#x000A;								      and (not($ndCur/@rowlines) or $ndCur/@rowlines=&#39;&#39; or $ndCur/@rowlines=&#39;none&#39;)&#x000A;                      and (not($ndCur/@mml:rowlines) or $ndCur/@mml:rowlines=&#39;&#39; or $ndCur/@mml:rowlines=&#39;none&#39;)&#x000A;								      and not($ndCur/mml:mtr[count(mml:mtd) &amp;gt; 1])&#x000A;											and not($ndCur/mml:mtr[count(mml:mtd) &amp;lt; 1])&#x000A;								      and not($ndCur/mml:mlabeledtr)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- Template used to determine if we should ignore a collection when iterating through &#x000A;	     a mathml equation array row.&#x000A;	&#x000A;			 So far, the only thing that needs to be ignored is the argument of an nary.  We&#x000A;			 can ignore this since it is output when we apply-templates to the munder[over]/msub[sup].&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;FIgnoreCollection&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;fNaryArgument&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;FIsNaryArgument&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndCur&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$fNaryArgument=1&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- Template used to determine if we&#39;ve already encountered an maligngroup or malignmark.&#x000A;	&#x000A;			 This is needed because omml has an implicit spacing alignment (omml spacing alignment = &#x000A;			 mathml&#39;s maligngroup element) at the beginning of each equation array row.  Therefore, &#x000A;			 the first maligngroup (implied or explicit) we encounter does not need to be output.  &#x000A;			 This template recursively searches up the xml tree and looks at previous siblings to see &#x000A;			 if they have a descendant that is an maligngroup or malignmark.  We look for the malignmark &#x000A;			 to find the implicit maligngroup.&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;FFirstAlignAlreadyFound&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;count($ndCur/preceding-sibling::*[descendant-or-self::mml:maligngroup&#x000A;								                                        or descendant-or-self::mml:malignmark]) &amp;gt; 0&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:when test=&quot;not($ndCur/parent::mml:mtd)&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;FFirstAlignAlreadyFound&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndCur/parent::*&quot; /&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- This template builds a string that is result of concatenating a given string several times. &#x000A;	&#x000A;			 Given strToRepeat, create a string that has strToRepeat repeated iRepitions times. &#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;ConcatStringRepeat&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;strToRepeat&quot; select=&quot;&#39;&#39;&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;iRepetitions&quot; select=&quot;0&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;strBuilding&quot; select=&quot;&#39;&#39;&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$iRepetitions &amp;lt;= 0&quot;&gt;&#x000A;        &lt;xsl:value-of select=&quot;$strBuilding&quot; /&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:call-template name=&quot;ConcatStringRepeat&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;strToRepeat&quot; select=&quot;$strToRepeat&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;iRepetitions&quot; select=&quot;$iRepetitions - 1&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;strBuilding&quot; select=&quot;concat($strBuilding, $strToRepeat)&quot; /&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- This template determines if ndCur is a special collection.&#x000A;			 By special collection, I mean is ndCur the outer element of some special grouping &#x000A;			 of mathml elements that actually represents some over all omml structure.&#x000A;			 &#x000A;			 For instance, is ndCur a linear fraction, or an omml function.&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;FSpecialCollection&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$ndCur/self::mml:mrow&quot;&gt;&#x000A;        &lt;xsl:variable name=&quot;fLinearFraction&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FLinearFrac&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndCur&quot;/&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:variable name=&quot;fFunc&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FIsFunc&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndCur&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;$fLinearFraction=1 or $fFunc=1&quot;&gt;1&lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- This template iterates through the children of an equation array row (mtr) and outputs&#x000A;	     the equation.&#x000A;			 &#x000A;			 This template does all the work to output ampersands and skip the right elements when needed.&#x000A;	--&gt;&#x000A;  &lt;xsl:template name=&quot;ProcessEqArrayRow&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:for-each select=&quot;$ndCur/*&quot;&gt;&#x000A;      &lt;xsl:variable name=&quot;fSpecialCollection&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;FSpecialCollection&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:variable&gt;&#x000A;      &lt;xsl:variable name=&quot;fIgnoreCollection&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;FIgnoreCollection&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:variable&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;!-- If we have an alignment element output the ampersand. --&gt;&#x000A;        &lt;xsl:when test=&quot;self::mml:maligngroup or self::mml:malignmark&quot;&gt;&#x000A;          &lt;!-- Omml has an implied spacing alignment at the beginning of each equation.&#x000A;					     Therefore, if this is the first ampersand to be output, don&#39;t actually output. --&gt;&#x000A;          &lt;xsl:variable name=&quot;fFirstAlignAlreadyFound&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;FFirstAlignAlreadyFound&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/xsl:variable&gt;&#x000A;          &lt;!-- Don&#39;t output unless it is an malignmark or we have already previously found an alignment point. --&gt;&#x000A;          &lt;xsl:if test=&quot;self::mml:malignmark or $fFirstAlignAlreadyFound=1&quot;&gt;&#x000A;            &lt;m:r&gt;&#x000A;              &lt;m:t&gt;&amp;amp;&lt;/m:t&gt;&#x000A;            &lt;/m:r&gt;&#x000A;          &lt;/xsl:if&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;!-- If this node is an non-special mrow or mstyle and we aren&#39;t supposed to ignore this collection, then&#x000A;				     go ahead an apply templates to this node. --&gt;&#x000A;        &lt;xsl:when test=&quot;$fIgnoreCollection=0 and ((self::mml:mrow and $fSpecialCollection=0) or self::mml:mstyle)&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;ProcessEqArrayRow&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;!-- At this point we have some mathml structure (fraction, nary, non-grouping element, etc.) --&gt;&#x000A;        &lt;!-- If this mathml structure has alignment groups or marks as children, then extract those since&#x000A;				     omml can&#39;t handle that. --&gt;&#x000A;        &lt;xsl:when test=&quot;descendant::mml:maligngroup or descendant::mml:malignmark&quot;&gt;&#x000A;          &lt;xsl:variable name=&quot;cMalignGroups&quot;&gt;&#x000A;            &lt;xsl:value-of select=&quot;count(descendant::mml:maligngroup)&quot; /&gt;&#x000A;          &lt;/xsl:variable&gt;&#x000A;          &lt;xsl:variable name=&quot;cMalignMarks&quot;&gt;&#x000A;            &lt;xsl:value-of select=&quot;count(descendant::mml:malignmark)&quot; /&gt;&#x000A;          &lt;/xsl:variable&gt;&#x000A;          &lt;!-- Output all maligngroups and malignmarks as &#39;&amp;&#39; --&gt;&#x000A;          &lt;xsl:if test=&quot;$cMalignGroups + $cMalignMarks &amp;gt; 0&quot;&gt;&#x000A;            &lt;xsl:variable name=&quot;str&quot;&gt;&#x000A;              &lt;xsl:call-template name=&quot;ConcatStringRepeat&quot;&gt;&#x000A;                &lt;xsl:with-param name=&quot;strToRepeat&quot; select=&quot;&#39;&amp;amp;&#39;&quot; /&gt;&#x000A;                &lt;xsl:with-param name=&quot;iRepetitions&quot; select=&quot;$cMalignGroups + $cMalignMarks&quot; /&gt;&#x000A;                &lt;xsl:with-param name=&quot;strBuilding&quot; select=&quot;&#39;&#39;&quot; /&gt;&#x000A;              &lt;/xsl:call-template&gt;&#x000A;            &lt;/xsl:variable&gt;&#x000A;            &lt;xsl:element name=&quot;m:r&quot;&gt;&#x000A;              &lt;xsl:element name=&quot;m:t&quot;&gt;&#x000A;                &lt;xsl:call-template name=&quot;OutputText&quot;&gt;&#x000A;                  &lt;xsl:with-param name=&quot;sInput&quot; select=&quot;$str&quot; /&gt;&#x000A;                &lt;/xsl:call-template&gt;&#x000A;              &lt;/xsl:element&gt;&#x000A;            &lt;/xsl:element&gt;&#x000A;          &lt;/xsl:if&gt;&#x000A;          &lt;!-- Now that the &#39;&amp;&#39; have been extracted, just apply-templates to this node.--&gt;&#x000A;          &lt;xsl:apply-templates select=&quot;.&quot; /&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;!-- If there are no alignment points as descendants, then go ahead and output this node. --&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:apply-templates select=&quot;.&quot; /&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:for-each&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- This template transforms mtable into its appropriate omml type.&#x000A;	&#x000A;			 There are two possible omml constructs that an mtable can become:  a matrix or &#x000A;			 an equation array.&#x000A;			 &#x000A;			 Because omml has no generic table construct, the omml matrix is the best approximate&#x000A;			 for a mathml table.&#x000A;			 &#x000A;			 Our equation array transformation is very simple.  The main goal of this transform is to&#x000A;			 allow roundtripping omml eq arrays through mathml.  The template ProcessEqArrayRow was never&#x000A;			 intended to account for many of the alignment flexibilities that are present in mathml like &#x000A;			 using the alig attribute, using alignmark attribute in token elements, etc.&#x000A;			 &#x000A;			 The restrictions on this transform require &lt;malignmark&gt; and &lt;maligngroup&gt; elements to be outside of&#x000A;			 any non-grouping mathml elements (that is, mrow and mstyle).  Moreover, these elements cannot be the children of&#x000A;			 mrows that represent linear fractions or functions.  Also, &lt;malignmark&gt; cannot be a child&#x000A;			 of token attributes.&#x000A;			 &#x000A;			 In the case that the above &#x000A;	&#x000A;	--&gt;&#x000A;  &lt;xsl:template match=&quot;mml:mtable&quot;&gt;&#x000A;    &lt;xsl:variable name=&quot;fEqArray&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;FIsEqArray&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$fEqArray=1&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:eqArr&quot;&gt;&#x000A;          &lt;xsl:for-each select=&quot;mml:mtr&quot;&gt;&#x000A;            &lt;xsl:element name=&quot;m:e&quot;&gt;&#x000A;              &lt;xsl:call-template name=&quot;ProcessEqArrayRow&quot;&gt;&#x000A;                &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;mml:mtd&quot; /&gt;&#x000A;              &lt;/xsl:call-template&gt;&#x000A;            &lt;/xsl:element&gt;&#x000A;          &lt;/xsl:for-each&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:variable name=&quot;cMaxElmtsInRow&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;CountMaxElmtsInRow&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;*[1]&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;cMaxElmtsInRow&quot; select=&quot;0&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;m:m&gt;&#x000A;          &lt;m:mPr&gt;&#x000A;            &lt;m:baseJc m:val=&quot;center&quot; /&gt;&#x000A;            &lt;m:plcHide m:val=&quot;on&quot; /&gt;&#x000A;            &lt;m:mcs&gt;&#x000A;              &lt;m:mc&gt;&#x000A;                &lt;m:mcPr&gt;&#x000A;                  &lt;m:count&gt;&#x000A;                    &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;                      &lt;xsl:value-of select=&quot;$cMaxElmtsInRow&quot; /&gt;&#x000A;                    &lt;/xsl:attribute&gt;&#x000A;                  &lt;/m:count&gt;&#x000A;                  &lt;m:mcJc m:val=&quot;center&quot; /&gt;&#x000A;                &lt;/m:mcPr&gt;&#x000A;              &lt;/m:mc&gt;&#x000A;            &lt;/m:mcs&gt;&#x000A;          &lt;/m:mPr&gt;&#x000A;          &lt;xsl:for-each select=&quot;*&quot;&gt;&#x000A;            &lt;xsl:choose&gt;&#x000A;              &lt;xsl:when test=&quot;self::mml:mtr or self::mml:mlabeledtr&quot;&gt;&#x000A;                &lt;m:mr&gt;&#x000A;                  &lt;xsl:choose&gt;&#x000A;                    &lt;xsl:when test=&quot;self::mml:mtr&quot;&gt;&#x000A;                      &lt;xsl:for-each select=&quot;*&quot;&gt;&#x000A;                        &lt;m:e&gt;&#x000A;                          &lt;xsl:apply-templates select=&quot;.&quot; /&gt;&#x000A;                        &lt;/m:e&gt;&#x000A;                      &lt;/xsl:for-each&gt;&#x000A;                      &lt;xsl:call-template name=&quot;CreateEmptyElmt&quot;&gt;&#x000A;                        &lt;xsl:with-param name=&quot;cEmptyMtd&quot; select=&quot;$cMaxElmtsInRow - count(*)&quot; /&gt;&#x000A;                      &lt;/xsl:call-template&gt;&#x000A;                    &lt;/xsl:when&gt;&#x000A;                    &lt;xsl:otherwise&gt;&#x000A;                      &lt;xsl:for-each select=&quot;*[position() &amp;gt; 1]&quot;&gt;&#x000A;                        &lt;m:e&gt;&#x000A;                          &lt;xsl:apply-templates select=&quot;.&quot; /&gt;&#x000A;                        &lt;/m:e&gt;&#x000A;                      &lt;/xsl:for-each&gt;&#x000A;                      &lt;xsl:call-template name=&quot;CreateEmptyElmt&quot;&gt;&#x000A;                        &lt;xsl:with-param name=&quot;cEmptyMtd&quot; select=&quot;$cMaxElmtsInRow - (count(*) - 1)&quot; /&gt;&#x000A;                      &lt;/xsl:call-template&gt;&#x000A;                    &lt;/xsl:otherwise&gt;&#x000A;                  &lt;/xsl:choose&gt;&#x000A;                &lt;/m:mr&gt;&#x000A;              &lt;/xsl:when&gt;&#x000A;              &lt;xsl:otherwise&gt;&#x000A;                &lt;m:mr&gt;&#x000A;                  &lt;m:e&gt;&#x000A;                    &lt;xsl:apply-templates select=&quot;.&quot; /&gt;&#x000A;                  &lt;/m:e&gt;&#x000A;                  &lt;xsl:call-template name=&quot;CreateEmptyElmt&quot;&gt;&#x000A;                    &lt;xsl:with-param name=&quot;cEmptyMtd&quot; select=&quot;$cMaxElmtsInRow - 1&quot; /&gt;&#x000A;                  &lt;/xsl:call-template&gt;&#x000A;                &lt;/m:mr&gt;&#x000A;              &lt;/xsl:otherwise&gt;&#x000A;            &lt;/xsl:choose&gt;&#x000A;          &lt;/xsl:for-each&gt;&#x000A;        &lt;/m:m&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;  &lt;xsl:template match=&quot;m:mtd&quot;&gt;&#x000A;    &lt;xsl:apply-templates select=&quot;*&quot; /&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;  &lt;xsl:template name=&quot;CreateEmptyElmt&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;cEmptyMtd&quot; /&gt;&#x000A;    &lt;xsl:if test=&quot;$cEmptyMtd &amp;gt; 0&quot;&gt;&#x000A;      &lt;m:e&gt;&lt;/m:e&gt;&#x000A;      &lt;xsl:call-template name=&quot;CreateEmptyElmt&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;cEmptyMtd&quot; select=&quot;$cEmptyMtd - 1&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:if&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;  &lt;xsl:template name=&quot;CountMaxElmtsInRow&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;cMaxElmtsInRow&quot; select=&quot;0&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;not($ndCur)&quot;&gt;&#x000A;        &lt;xsl:value-of select=&quot;$cMaxElmtsInRow&quot; /&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:call-template name=&quot;CountMaxElmtsInRow&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;$ndCur/following-sibling::*[1]&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;cMaxElmtsInRow&quot;&gt;&#x000A;            &lt;xsl:choose&gt;&#x000A;              &lt;xsl:when test=&quot;local-name($ndCur) = &#39;mlabeledtr&#39; and &#x000A;								            namespace-uri($ndCur) = &#39;http://www.w3.org/1998/Math/MathML&#39;&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;(count($ndCur/*) - 1) &amp;gt; $cMaxElmtsInRow&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;count($ndCur/*) - 1&quot; /&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;$cMaxElmtsInRow&quot; /&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:when&gt;&#x000A;              &lt;xsl:when test=&quot;local-name($ndCur) = &#39;mtr&#39; and &#x000A;								            namespace-uri($ndCur) = &#39;http://www.w3.org/1998/Math/MathML&#39;&quot;&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;count($ndCur/*) &amp;gt; $cMaxElmtsInRow&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;count($ndCur/*)&quot; /&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;$cMaxElmtsInRow&quot; /&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:when&gt;&#x000A;              &lt;xsl:otherwise&gt;&#x000A;                &lt;xsl:choose&gt;&#x000A;                  &lt;xsl:when test=&quot;1 &amp;gt; $cMaxElmtsInRow&quot;&gt;&#x000A;                    &lt;xsl:value-of select=&quot;1&quot; /&gt;&#x000A;                  &lt;/xsl:when&gt;&#x000A;                  &lt;xsl:otherwise&gt;&#x000A;                    &lt;xsl:value-of select=&quot;$cMaxElmtsInRow&quot; /&gt;&#x000A;                  &lt;/xsl:otherwise&gt;&#x000A;                &lt;/xsl:choose&gt;&#x000A;              &lt;/xsl:otherwise&gt;&#x000A;            &lt;/xsl:choose&gt;&#x000A;          &lt;/xsl:with-param&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;xsl:template name=&quot;GetMglyphAltText&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;$ndCur/@alt&quot;&gt;&#x000A;        &lt;xsl:value-of select=&quot;normalize-space($ndCur/@alt)&quot;/&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:value-of select=&quot;normalize-space($ndCur/@mml:alt)&quot;/&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;xsl:template match=&quot;mml:mglyph&quot;&gt;&#x000A;    &lt;xsl:element name=&quot;m:r&quot;&gt;&#x000A;      &lt;xsl:element name=&quot;m:rPr&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:nor&quot; /&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;      &lt;xsl:element name=&quot;m:t&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;OutputText&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;sInput&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;GetMglyphAltText&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/xsl:with-param&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;    &lt;/xsl:element&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- Omml doesn&#39;t really support mglyph, so just output the alt text --&gt;&#x000A;  &lt;xsl:template match=&quot;mml:mi[child::mml:mglyph] | &#x000A;	                     mml:mn[child::mml:mglyph] | &#x000A;	                     mml:mo[child::mml:mglyph] | &#x000A;	                     mml:ms[child::mml:mglyph] | &#x000A;	                     mml:mtext[child::mml:mglyph]&quot;&gt;&#x000A;    &lt;xsl:variable name=&quot;mathvariant&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;@mathvariant&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;@mathvariant&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;@mml:mathvariant&quot;/&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;fontstyle&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;@fontstyle&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;@fontstyle&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;@mml:fontstyle&quot;/&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;fontweight&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;@fontweight&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;@fontweight&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;@mml:fontweight&quot;/&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;mathcolor&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;@mathcolor&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;@mathcolor&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;@mml:mathcolor&quot;/&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;mathsize&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;@mathsize&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;@mathsize&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;@mml:mathsize&quot;/&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;color&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;@color&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;@color&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;@mml:color&quot;/&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;fontsize&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;@fontsize&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;@fontsize&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;@mml:fontsize&quot;/&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;    &lt;xsl:variable name=&quot;fNor&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;FNor&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;!-- Output MS Left Quote (if need be) --&gt;&#x000A;    &lt;xsl:if test=&quot;self::mml:ms&quot;&gt;&#x000A;      &lt;xsl:variable name=&quot;chLquote&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;LQuoteFromMs&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;curMs&quot; select=&quot;.&quot; /&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:variable&gt;&#x000A;      &lt;xsl:element name=&quot;m:r&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;CreateRunProp&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;mathvariant&quot; select=&quot;$mathvariant&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;fontstyle&quot; select=&quot;$fontstyle&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;fontweight&quot; select=&quot;$fontweight&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;mathcolor&quot; select=&quot;$mathcolor&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;mathsize&quot; select=&quot;$mathsize&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;color&quot; select=&quot;$color&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;fontsize&quot; select=&quot;$fontsize&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;fNor&quot; select=&quot;$fNor&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;        &lt;xsl:element name=&quot;m:t&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;OutputText&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;sInput&quot; select=&quot;$chLquote&quot;/&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;    &lt;/xsl:if&gt;&#x000A;    &lt;xsl:for-each select=&quot;mml:mglyph | text()&quot;&gt;&#x000A;      &lt;xsl:variable name=&quot;fForceNor&quot;&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;self::mml:mglyph&quot;&gt;1&lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:variable&gt;&#x000A;&#x000A;      &lt;xsl:variable name=&quot;str&quot;&gt;&#x000A;        &lt;xsl:choose&gt;&#x000A;          &lt;xsl:when test=&quot;self::mml:mglyph&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;GetMglyphAltText&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/xsl:when&gt;&#x000A;          &lt;xsl:otherwise&gt;&#x000A;            &lt;xsl:value-of select=&quot;normalize-space(.)&quot;/&gt;&#x000A;          &lt;/xsl:otherwise&gt;&#x000A;        &lt;/xsl:choose&gt;&#x000A;      &lt;/xsl:variable&gt;&#x000A;      &lt;xsl:if test=&quot;string-length($str) &amp;gt; 0&quot;&gt;&#x000A;        &lt;xsl:element name=&quot;m:r&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreateRunProp&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathvariant&quot; select=&quot;$mathvariant&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontstyle&quot; select=&quot;$fontstyle&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontweight&quot; select=&quot;$fontweight&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathcolor&quot; select=&quot;$mathcolor&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;mathsize&quot; select=&quot;$mathsize&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;color&quot; select=&quot;$color&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fontsize&quot; select=&quot;$fontsize&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fNor&quot;&gt;&#x000A;              &lt;xsl:choose&gt;&#x000A;                &lt;xsl:when test=&quot;$fForceNor=1&quot;&gt;1&lt;/xsl:when&gt;&#x000A;                &lt;xsl:otherwise&gt;&#x000A;                  &lt;xsl:value-of select=&quot;$fNor&quot;/&gt;&#x000A;                &lt;/xsl:otherwise&gt;&#x000A;              &lt;/xsl:choose&gt;&#x000A;            &lt;/xsl:with-param&gt;&#x000A;            &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;          &lt;xsl:element name=&quot;m:t&quot;&gt;&#x000A;            &lt;xsl:call-template name=&quot;OutputText&quot;&gt;&#x000A;              &lt;xsl:with-param name=&quot;sInput&quot; select=&quot;$str&quot;/&gt;&#x000A;            &lt;/xsl:call-template&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:if&gt;&#x000A;    &lt;/xsl:for-each&gt;&#x000A;&#x000A;    &lt;!-- Output MS Right Quote (if need be) --&gt;&#x000A;    &lt;xsl:if test=&quot;self::mml:ms&quot;&gt;&#x000A;      &lt;xsl:variable name=&quot;chRquote&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;RQuoteFromMs&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;curMs&quot; select=&quot;.&quot; /&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:variable&gt;&#x000A;      &lt;xsl:element name=&quot;m:r&quot;&gt;&#x000A;        &lt;xsl:call-template name=&quot;CreateRunProp&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;mathvariant&quot; select=&quot;$mathvariant&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;fontstyle&quot; select=&quot;$fontstyle&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;fontweight&quot; select=&quot;$fontweight&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;mathcolor&quot; select=&quot;$mathcolor&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;mathsize&quot; select=&quot;$mathsize&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;color&quot; select=&quot;$color&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;fontsize&quot; select=&quot;$fontsize&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;fNor&quot; select=&quot;$fNor&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;        &lt;xsl:element name=&quot;m:t&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;OutputText&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;sInput&quot; select=&quot;$chRquote&quot;/&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;    &lt;/xsl:if&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;xsl:template name=&quot;FStrContainsNonZeroDigit&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;s&quot; /&gt;&#x000A;&#x000A;    &lt;!-- Translate any nonzero digit into a 9 --&gt;&#x000A;    &lt;xsl:variable name=&quot;sNonZeroDigitsToNineDigit&quot; select=&quot;translate($s, &#39;12345678&#39;, &#39;99999999&#39;)&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- Search for 9s --&gt;&#x000A;      &lt;xsl:when test=&quot;contains($sNonZeroDigitsToNineDigit, &#39;9&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;xsl:template name=&quot;FStrContainsDigits&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;s&quot; /&gt;&#x000A;&#x000A;    &lt;!-- Translate any digit into a 0 --&gt;&#x000A;    &lt;xsl:variable name=&quot;sDigitsToZeroDigit&quot; select=&quot;translate($s, &#39;123456789&#39;, &#39;000000000&#39;)&quot; /&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- Search for 0s --&gt;&#x000A;      &lt;xsl:when test=&quot;contains($sDigitsToZeroDigit, &#39;0&#39;)&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- Used to determine if mpadded attribute {width, height, depth } &#x000A;       indicates to show everything. &#x000A;       &#x000A;       Unlike mathml, whose mpadded structure has great flexibility in modifying the &#x000A;       bounding box&#39;s width, height, and depth, Word can only have zero or full width, height, and depth.&#x000A;       Thus, if the width, height, or depth attributes indicate any kind of nonzero width, height, &#x000A;       or depth, we&#39;ll translate that into a show full width, height, or depth for OMML.  Only if the attribute&#x000A;       indicates a zero width, height, or depth, will we report back FFull as false.&#x000A;       &#x000A;       Example:  s=0%    -&gt;  FFull returns 0.&#x000A;                 s=2%    -&gt;  FFull returns 1.&#x000A;                 s=0.1em -&gt;  FFull returns 1.     &#x000A;       &#x000A;       --&gt;&#x000A;  &lt;xsl:template name=&quot;FFull&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;s&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;fStrContainsNonZeroDigit&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;FStrContainsNonZeroDigit&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;s&quot; select=&quot;$s&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;fStrContainsDigits&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;FStrContainsDigits&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;s&quot; select=&quot;$s&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- String contained non-zero digit --&gt;&#x000A;      &lt;xsl:when test=&quot;$fStrContainsNonZeroDigit=1&quot;&gt;1&lt;/xsl:when&gt;&#x000A;      &lt;!-- String didn&#39;t contain a non-zero digit, but it did contain digits.&#x000A;           This must mean that all digits in the string were 0s. --&gt;&#x000A;      &lt;xsl:when test=&quot;$fStrContainsDigits=1&quot;&gt;0&lt;/xsl:when&gt;&#x000A;      &lt;!-- Else, no digits, therefore, return true.&#x000A;           We return true in the otherwise condition to take account for the possibility&#x000A;           in MathML to say something like width=&quot;height&quot;. --&gt;&#x000A;      &lt;xsl:otherwise&gt;1&lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;!-- Just outputs phant properties, doesn&#39;t do any fancy &#x000A;       thinking of its own, just obeys the defaults of &#x000A;       phants. --&gt;&#x000A;  &lt;xsl:template name=&quot;CreatePhantPropertiesCore&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;fShow&quot; select=&quot;1&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fFullWidth&quot; select=&quot;1&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fFullHeight&quot; select=&quot;1&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fFullDepth&quot; select=&quot;1&quot; /&gt;&#x000A;&#x000A;    &lt;xsl:if test=&quot;$fShow=0 &#x000A;                    or $fFullWidth=0 &#x000A;                    or $fFullHeight=0&#x000A;                    or $fFullDepth=0&quot;&gt;&#x000A;      &lt;xsl:element name=&quot;m:phantPr&quot;&gt;&#x000A;        &lt;xsl:if test=&quot;$fShow=0&quot;&gt;&#x000A;          &lt;xsl:element name=&quot;m:show&quot;&gt;&#x000A;            &lt;xsl:attribute name=&quot;m:val&quot;&gt;off&lt;/xsl:attribute&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;        &lt;/xsl:if&gt;&#x000A;        &lt;xsl:if test=&quot;$fFullWidth=0&quot;&gt;&#x000A;          &lt;xsl:element name=&quot;m:zeroWid&quot;&gt;&#x000A;            &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;        &lt;/xsl:if&gt;&#x000A;        &lt;xsl:if test=&quot;$fFullHeight=0&quot;&gt;&#x000A;          &lt;xsl:element name=&quot;m:zeroAsc&quot;&gt;&#x000A;            &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;        &lt;/xsl:if&gt;&#x000A;        &lt;xsl:if test=&quot;$fFullDepth=0&quot;&gt;&#x000A;          &lt;xsl:element name=&quot;m:zeroDesc&quot;&gt;&#x000A;            &lt;xsl:attribute name=&quot;m:val&quot;&gt;on&lt;/xsl:attribute&gt;&#x000A;          &lt;/xsl:element&gt;&#x000A;        &lt;/xsl:if&gt;&#x000A;      &lt;/xsl:element&gt;&#x000A;    &lt;/xsl:if&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;!-- Figures out if we should factor in width, height, and depth attributes.  &#x000A;  &#x000A;       If so, then it &#x000A;       gets these attributes, does some processing to figure out what the attributes indicate, &#x000A;       then passes these indications to CreatePhantPropertiesCore.  &#x000A;       &#x000A;       If we aren&#39;t supposed to factor in width, height, or depth, then we&#39;ll just output the show&#x000A;       attribute. --&gt;&#x000A;  &lt;xsl:template name=&quot;CreatePhantProperties&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;fShow&quot; select=&quot;1&quot;/&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- In the special case that we have an mphantom with one child which is an mpadded, then we should &#x000A;           subsume the mpadded attributes into the mphantom attributes.  The test statement below imples the &#x000A;           &#39;one child which is an mpadded&#39;.  The first part, that the parent of mpadded is an mphantom, is implied&#x000A;           by being in this template, which is only called when we&#39;ve encountered an mphantom.&#x000A;           &#x000A;           Word outputs its invisible phantoms with smashing as &#x000A;&#x000A;              &lt;mml:mphantom&gt;&#x000A;                &lt;mml:mpadded . . . &gt;&#x000A;                  &#x000A;                &lt;/mml:mpadded&gt;&#x000A;              &lt;/mml:mphantom&gt;&#x000A;&#x000A;            This test is used to allow roundtripping smashed invisible phantoms. --&gt;&#x000A;      &lt;xsl:when test=&quot;count($ndCur/child::*)=1 and count($ndCur/mml:mpadded)=1&quot;&gt;&#x000A;        &lt;xsl:variable name=&quot;sLowerCaseWidth&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndCur/mml:mpadded/@width&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/mml:mpadded/@width, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/mml:mpadded/@mml:width, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:variable name=&quot;sLowerCaseHeight&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndCur/mml:mpadded/@height&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/mml:mpadded/@height, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/mml:mpadded/@mml:height, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:variable name=&quot;sLowerCaseDepth&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndCur/mml:mpadded/@depth&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/mml:mpadded/@depth, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/mml:mpadded/@mml:depth, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;&#x000A;        &lt;xsl:variable name=&quot;fFullWidth&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FFull&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;s&quot; select=&quot;$sLowerCaseWidth&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:variable name=&quot;fFullHeight&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FFull&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;s&quot; select=&quot;$sLowerCaseHeight&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:variable name=&quot;fFullDepth&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FFull&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;s&quot; select=&quot;$sLowerCaseDepth&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;&#x000A;        &lt;xsl:call-template name=&quot;CreatePhantPropertiesCore&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;fShow&quot; select=&quot;$fShow&quot;/&gt;&#x000A;          &lt;xsl:with-param name=&quot;fFullWidth&quot; select=&quot;$fFullWidth&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;fFullHeight&quot; select=&quot;$fFullHeight&quot; /&gt;&#x000A;          &lt;xsl:with-param name=&quot;fFullDepth&quot; select=&quot;$fFullDepth&quot; /&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:call-template name=&quot;CreatePhantPropertiesCore&quot;&gt;&#x000A;          &lt;xsl:with-param name=&quot;fShow&quot; select=&quot;$fShow&quot;/&gt;&#x000A;        &lt;/xsl:call-template&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;xsl:template match=&quot;mml:mpadded&quot;&gt;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;xsl:when test=&quot;count(parent::mml:mphantom)=1 and count(preceding-sibling::*)=0 and count(following-sibling::*)=0&quot;&gt;&#x000A;        &lt;!-- This mpadded is inside an mphantom that has already setup phantom attributes, therefore, just apply templates --&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;*&quot; /&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:variable name=&quot;sLowerCaseWidth&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;@width&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;@width&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;@mml:width&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:variable name=&quot;sLowerCaseHeight&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;@height&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;@height&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;@mml:height&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:variable name=&quot;sLowerCaseDepth&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;@depth&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;@depth&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;@mml:depth&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;&#x000A;        &lt;xsl:variable name=&quot;fFullWidth&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FFull&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;s&quot; select=&quot;$sLowerCaseWidth&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:variable name=&quot;fFullHeight&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FFull&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;s&quot; select=&quot;$sLowerCaseHeight&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;        &lt;xsl:variable name=&quot;fFullDepth&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;FFull&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;s&quot; select=&quot;$sLowerCaseDepth&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;        &lt;/xsl:variable&gt;&#x000A;&#x000A;        &lt;xsl:element name=&quot;m:phant&quot;&gt;&#x000A;          &lt;xsl:call-template name=&quot;CreatePhantPropertiesCore&quot;&gt;&#x000A;            &lt;xsl:with-param name=&quot;fShow&quot; select=&quot;1&quot;/&gt;&#x000A;            &lt;xsl:with-param name=&quot;fFullWidth&quot; select=&quot;$fFullWidth&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fFullHeight&quot; select=&quot;$fFullHeight&quot; /&gt;&#x000A;            &lt;xsl:with-param name=&quot;fFullDepth&quot; select=&quot;$fFullDepth&quot; /&gt;&#x000A;          &lt;/xsl:call-template&gt;&#x000A;          &lt;m:e&gt;&#x000A;            &lt;xsl:apply-templates select=&quot;*&quot; /&gt;&#x000A;          &lt;/m:e&gt;&#x000A;        &lt;/xsl:element&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;xsl:template match=&quot;mml:mphantom&quot;&gt;&#x000A;    &lt;xsl:element name=&quot;m:phant&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;CreatePhantProperties&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;ndCur&quot; select=&quot;.&quot; /&gt;&#x000A;        &lt;xsl:with-param name=&quot;fShow&quot; select=&quot;0&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;      &lt;m:e&gt;&#x000A;        &lt;xsl:apply-templates select=&quot;*&quot; /&gt;&#x000A;      &lt;/m:e&gt;&#x000A;    &lt;/xsl:element&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;xsl:template name=&quot;isNaryOper&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;sNdCur&quot; /&gt;&#x000A;    &lt;xsl:value-of select=&quot;($sNdCur = &#39;&amp;#x222B;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x222C;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x222D;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x222E;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x222F;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x2230;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x2232;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x2233;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x2231;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x2229;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x222A;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x220F;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x2210;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x2211;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x22C0;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x22C1;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x22C2;&#39; &#x000A;                            or $sNdCur = &#39;&amp;#x22C3;&#39;)&quot; /&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;&#x000A;  &lt;xsl:template name=&quot;isNary&quot;&gt;&#x000A;    &lt;!-- ndCur is the element around the nAry operator --&gt;&#x000A;    &lt;xsl:param name=&quot;ndCur&quot; /&gt;&#x000A;    &lt;xsl:variable name=&quot;sNdCur&quot;&gt;&#x000A;      &lt;xsl:value-of select=&quot;normalize-space($ndCur)&quot; /&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;fNaryOper&quot;&gt;&#x000A;      &lt;xsl:call-template name=&quot;isNaryOper&quot;&gt;&#x000A;        &lt;xsl:with-param name=&quot;sNdCur&quot; select=&quot;$sNdCur&quot; /&gt;&#x000A;      &lt;/xsl:call-template&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;!-- Narys shouldn&#39;t be MathML accents.  --&gt;&#x000A;    &lt;xsl:variable name=&quot;fUnder&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$ndCur/parent::*[self::mml:munder]&quot;&gt;1&lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;sLowerCaseAccent&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$fUnder=1&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndCur/parent::*[self::mml:munder]/@accentunder&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/parent::*[self::mml:munder]/@accentunder, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/parent::*[self::mml:munder]/@mml:accentunder, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$ndCur/parent::*/@accent&quot;&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/parent::*/@accent, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:value-of select=&quot;translate($ndCur/parent::*/@mml:accent, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:variable name=&quot;fAccent&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;$sLowerCaseAccent=&#39;true&#39;&quot;&gt;1&lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:variable&gt;&#x000A;&#x000A;    &lt;xsl:choose&gt;&#x000A;      &lt;!-- This ndCur is in fact part of an nAry if&#x000A;      &#x000A;           1)  The last descendant of ndCur (which could be ndCur itself) is an operator.&#x000A;           2)  Along that chain of descendants we only encounter mml:mo, mml:mstyle, and mml:mrow elements.&#x000A;           3)  the operator in mml:mo is a valid nAry operator&#x000A;           4)  The nAry is not accented.&#x000A;           --&gt;&#x000A;      &lt;xsl:when test=&quot;$fNaryOper = &#39;true&#39;&#x000A;                      and $fAccent=0&#x000A;                      and $ndCur/descendant-or-self::*[last()]/self::mml:mo&#x000A;                      and not($ndCur/descendant-or-self::*[not(self::mml:mo or &#x000A;			                                                     self::mml:mstyle or &#x000A;			                                                     self::mml:mrow)])&quot;&gt;&#x000A;        &lt;xsl:value-of select=&quot;true()&quot; /&gt;&#x000A;      &lt;/xsl:when&gt;&#x000A;      &lt;xsl:otherwise&gt;&#x000A;        &lt;xsl:value-of select=&quot;false()&quot; /&gt;&#x000A;      &lt;/xsl:otherwise&gt;&#x000A;    &lt;/xsl:choose&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&#x000A;  &lt;xsl:template name=&quot;CreateNaryProp&quot;&gt;&#x000A;    &lt;xsl:param name=&quot;chr&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;sMathmlType&quot; /&gt;&#x000A;    &lt;xsl:param name=&quot;sGrow&quot;&gt;&#x000A;      &lt;xsl:choose&gt;&#x000A;        &lt;xsl:when test=&quot;child::*[1]/@stretchy&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;translate(child::*[1]/@stretchy, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;        &lt;/xsl:when&gt;&#x000A;        &lt;xsl:otherwise&gt;&#x000A;          &lt;xsl:value-of select=&quot;translate(child::*[1]/@mml:stretchy, $StrUCAlphabet, $StrLCAlphabet)&quot;/&gt;&#x000A;        &lt;/xsl:otherwise&gt;&#x000A;      &lt;/xsl:choose&gt;&#x000A;    &lt;/xsl:param&gt;&#x000A;    &lt;m:naryPr&gt;&#x000A;      &lt;m:chr&gt;&#x000A;        &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;          &lt;xsl:value-of select=&quot;$chr&quot; /&gt;&#x000A;        &lt;/xsl:attribute&gt;&#x000A;      &lt;/m:chr&gt;&#x000A;      &lt;m:limLoc&gt;&#x000A;        &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$sMathmlType=&#39;munder&#39; or &#x000A;									$sMathmlType=&#39;mover&#39; or &#x000A;									$sMathmlType=&#39;munderover&#39;&quot;&gt;&#x000A;              &lt;xsl:text&gt;undOvr&lt;/xsl:text&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:when test=&quot;$sMathmlType=&#39;msub&#39; or&#x000A;					                $sMathmlType=&#39;msup&#39; or&#x000A;					                $sMathmlType=&#39;msubsup&#39;&quot;&gt;&#x000A;              &lt;xsl:text&gt;subSup&lt;/xsl:text&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:attribute&gt;&#x000A;      &lt;/m:limLoc&gt;&#x000A;      &lt;m:grow&gt;&#x000A;        &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$sGrow=&#39;true&#39;&quot;&gt;1&lt;/xsl:when&gt;&#x000A;            &lt;xsl:when test=&quot;$sGrow=&#39;false&#39;&quot;&gt;0&lt;/xsl:when&gt;&#x000A;            &lt;xsl:when test=&quot;$chr=&#39;&amp;#x222B;&#39; &#x000A;                            or $chr=&#39;&amp;#x222E;&#39; &#x000A;                            or $chr=&#39;&amp;#x222F;&#39; &#x000A;                            or $chr=&#39;&amp;#x2232;&#39; &#x000A;                            or $chr=&#39;&amp;#x2233;&#39;&#x000A;                            or $chr=&#39;&amp;#x2229;&#39;&#x000A;                            or $chr=&#39;&amp;#x222A;&#39; &#x000A;                            or $chr=&#39;&amp;#x220F;&#39; &#x000A;                            or $chr=&#39;&amp;#x2211;&#39; &#x000A;                            or $chr=&#39;&amp;#x22C0;&#39;&#x000A;                            or $chr=&#39;&amp;#x22C1;&#39; &#x000A;                            or $chr=&#39;&amp;#x22C2;&#39;&#x000A;                            or $chr=&#39;&amp;#x22C3;&#39;&quot;&gt;1&lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;0&lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:attribute&gt;&#x000A;      &lt;/m:grow&gt;&#x000A;      &lt;m:subHide&gt;&#x000A;        &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$sMathmlType=&#39;mover&#39; or&#x000A;						                $sMathmlType=&#39;msup&#39;&quot;&gt;&#x000A;              &lt;xsl:text&gt;on&lt;/xsl:text&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:text&gt;off&lt;/xsl:text&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:attribute&gt;&#x000A;      &lt;/m:subHide&gt;&#x000A;      &lt;m:supHide&gt;&#x000A;        &lt;xsl:attribute name=&quot;m:val&quot;&gt;&#x000A;          &lt;xsl:choose&gt;&#x000A;            &lt;xsl:when test=&quot;$sMathmlType=&#39;munder&#39; or&#x000A;						                $sMathmlType=&#39;msub&#39;&quot;&gt;&#x000A;              &lt;xsl:text&gt;on&lt;/xsl:text&gt;&#x000A;            &lt;/xsl:when&gt;&#x000A;            &lt;xsl:otherwise&gt;&#x000A;              &lt;xsl:text&gt;off&lt;/xsl:text&gt;&#x000A;            &lt;/xsl:otherwise&gt;&#x000A;          &lt;/xsl:choose&gt;&#x000A;        &lt;/xsl:attribute&gt;&#x000A;      &lt;/m:supHide&gt;&#x000A;    &lt;/m:naryPr&gt;&#x000A;  &lt;/xsl:template&gt;&#x000A;&lt;/xsl:stylesheet&gt;</textarea>
<a class="ui button" id="copy-text" href="#">一键复制</a>
<a class="ui button edit-blob" title="" href="/Luo_Jing98358/lu-py/edit/master/zuoyebang/plug/MML2OMML.XSL">编辑</a>
<a class="ui button edit-raw" target="_blank" href="/Luo_Jing98358/lu-py/raw/master/zuoyebang/plug/MML2OMML.XSL">原始数据</a>
<a class="ui button edit-blame" href="/Luo_Jing98358/lu-py/blame/master/zuoyebang/plug/MML2OMML.XSL">按行查看</a>
<a class="ui button edit-history" href="/Luo_Jing98358/lu-py/commits/master/zuoyebang/plug/MML2OMML.XSL">历史</a>
</div>
<script>
  window.gon.aiCodeParams = {
    pathWithNamespace: `Luo_Jing98358/lu-py`,
    blob: $("#blob_raw").val(),
    fileName: `zuoyebang/plug/MML2OMML.XSL`,
    id: `e2789e44f99cccf30cddae8270c202257ad97cb1`,
    timeStamp: `1721482509`,
    userId: `2237619`,
    sign: `L3ShWfUWif16SsZ675e3GPRxZX7HwNvr9bo3QqA+ghncmVaCNSL1cKQTKTzt2a+AMtnTTxmM5RL6VsB/nLJfN7Y6lbQzk4lKWDoRnQNgcyKDoqESITUBFmiiySEVlIj5fLKekfW6Q+woZ2FSWFQHVw==`,
  }
  window.gon.blobName = `"MML2OMML.XSL"`
  $('.js-code-parsing').dropdown({
    on: 'hover',
    action: 'hide',
    onHide: function () {
    },
    onShow: function () {
    }
  });
  $(".ai-code-dropdown-box").find('.item').on("click", function (e) {
    window.jqxhr && window.jqxhr.abort();
    window.aiLoadingTimer && clearTimeout(window.aiLoadingTimer);
    aiReqLoading = false
  
    window.Gitee.setFullscreen(true);
    $(".side-toolbar").hide();
    var $siteContent = $(".site-content");
    // 获取最小高度
    var minHeight = parseInt($siteContent.css("min-height"));
    // 获取当前高度
    var currentHeight = parseInt($siteContent.height());
    if (minHeight + 1 > currentHeight) {
      $("#code-parsing").css("height", currentHeight);
    }
  
    $("#git-project-container").addClass('git-transition-width');
    $("#project-wrapper").css("marginTop", "-24px");
    //$("#git-project-container").removeClass("sixteen wide column");
    //$("#git-project-container").addClass("twelve wide column");
    if(!$("#code-parsing").hasClass("code-parsing-box")){
      $("#git-project-container").attr("style", "width: 75% !important;");
    }
    $("#git-footer-main").css("margin-top", "14px");
    $("#code-parsing").addClass("code-parsing-box");
    $(".code-parsing-content").hide();
    $(".skeleton").show();
    $(".ai_code_btns_simple").hide();
  
    $("#code-parsing").find(".markdown-body").innerHTML='';
  
    aiCodeType = $(this).data("value");
    aiSubTitle = $(this).data("text");
    handleAiReqInit()
  });
</script>
<script>
  "use strict";
  try {
    if((gon.wait_fork!=undefined && gon.wait_fork==true) || (gon.wait_fetch!=undefined && gon.wait_fetch==true)){
      $('.edit-blob').popup({content:"当前仓库正在后台处理中,暂时无法编辑", on: 'hover', delay: { show: 200, hide: 200 }});
      $('.edit-blob').click(function(e){
        e.preventDefault();
      })
    }
  
    var setUrl = function() {
      var params = window.location.search
      if (params==undefined || $.trim(params).length==0) return;
      $('span.options').children('.basic').find('a').each(function(index,ele){
        var origin_href = $(ele).attr('href');
        if (origin_href!="#" && origin_href.indexOf('?') == -1){
          $(ele).attr('href',origin_href+params);
        }
      });
    }
  
    setUrl();
  
    var clipboard = null,
        $btncopy  = $("#copy-text");
  
    clipboard = new Clipboard("#copy-text", {
      text: function(trigger) {
        return $("#blob_raw").val();
      }
    })
  
    clipboard.on('success', function(e) {
      $btncopy.popup('hide');
      $btncopy.popup('destroy');
      $btncopy.popup({content: '已复制', position: 'bottom center'});
      $btncopy.popup('show');
    })
  
    clipboard.on('error', function(e) {
      var giteeModal = new GiteeModalHelper({okText: '确定'});
      giteeModal.alert("一键复制", '复制失败，请手动复制');
    })
  
    $(function() {
      $btncopy.popup({
        content: '点击复制',
        position: 'bottom center'
      })
    })
  
  } catch (error) {
    console.log('blob/action error:' + error);
  }
  
  $(".disabled-edit-readonly").popup({
    content: "只读文件不可编辑",
    className: {
      popup: "ui popup",
    },
    position: "bottom center",
  });
  $(".disabled-edit-readonly, .disabled-edit-status").click(function () {
    return false;
  });
  $(".has_tooltip").popup({
    position: "top center",
  });
</script>
<style>
  .disabled-edit-readonly, .disabled-edit-status {
    background-color: #dcddde !important;
    color: rgba(0, 0, 0, 0.4) !important;
    opacity: 0.3 !important;
    background-image: none !important;
    -webkit-box-shadow: none !important;
            box-shadow: none !important;
    cursor: default !important; }
  
  .drawio-iframe-code-card {
    position: relative; }
    .drawio-iframe-code-card textarea {
      width: 100%;
      height: 140px;
      resize: none; }
    .drawio-iframe-code-card .icon-clone {
      position: absolute;
      right: 32px;
      bottom: 32px; }
    .drawio-iframe-code-card iframe {
      border-radius: 2px;
      border: 1px solid #DEDEDF; }
</style>
</div>
</div>
<div class='blob-header-title mt-1 ubblock_tip'>
</div>
<div class='contributor-description'><span class='recent-commit' style='margin-top: 0.7rem'>
<a class="commit-author-link  js-popover-card " data-username="Luo_Jing98358" href="/Luo_Jing98358">罗敬</a>
<span>提交于</span>
<span class='timeago commit-date' title='2024-06-12 21:23:45 +0800'>
2024-06-12 21:23
</span>
.
<a href="/Luo_Jing98358/lu-py/commit/174d56ca16b4093337c10c29299096380aa6a5a1">完成了将latex表达式转换成word公式</a>
</span>
</div>
</div>
<div class='clearfix'></div>
<div class='file_content code'>
<div class='lines white'>
<div class='line-numbers'><a href='#L1' id='L1'>1</a><a href='#L2' id='L2'>2</a><a href='#L3' id='L3'>3</a><a href='#L4' id='L4'>4</a><a href='#L5' id='L5'>5</a><a href='#L6' id='L6'>6</a><a href='#L7' id='L7'>7</a><a href='#L8' id='L8'>8</a><a href='#L9' id='L9'>9</a><a href='#L10' id='L10'>10</a><a href='#L11' id='L11'>11</a><a href='#L12' id='L12'>12</a><a href='#L13' id='L13'>13</a><a href='#L14' id='L14'>14</a><a href='#L15' id='L15'>15</a><a href='#L16' id='L16'>16</a><a href='#L17' id='L17'>17</a><a href='#L18' id='L18'>18</a><a href='#L19' id='L19'>19</a><a href='#L20' id='L20'>20</a><a href='#L21' id='L21'>21</a><a href='#L22' id='L22'>22</a><a href='#L23' id='L23'>23</a><a href='#L24' id='L24'>24</a><a href='#L25' id='L25'>25</a><a href='#L26' id='L26'>26</a><a href='#L27' id='L27'>27</a><a href='#L28' id='L28'>28</a><a href='#L29' id='L29'>29</a><a href='#L30' id='L30'>30</a><a href='#L31' id='L31'>31</a><a href='#L32' id='L32'>32</a><a href='#L33' id='L33'>33</a><a href='#L34' id='L34'>34</a><a href='#L35' id='L35'>35</a><a href='#L36' id='L36'>36</a><a href='#L37' id='L37'>37</a><a href='#L38' id='L38'>38</a><a href='#L39' id='L39'>39</a><a href='#L40' id='L40'>40</a><a href='#L41' id='L41'>41</a><a href='#L42' id='L42'>42</a><a href='#L43' id='L43'>43</a><a href='#L44' id='L44'>44</a><a href='#L45' id='L45'>45</a><a href='#L46' id='L46'>46</a><a href='#L47' id='L47'>47</a><a href='#L48' id='L48'>48</a><a href='#L49' id='L49'>49</a><a href='#L50' id='L50'>50</a><a href='#L51' id='L51'>51</a><a href='#L52' id='L52'>52</a><a href='#L53' id='L53'>53</a><a href='#L54' id='L54'>54</a><a href='#L55' id='L55'>55</a><a href='#L56' id='L56'>56</a><a href='#L57' id='L57'>57</a><a href='#L58' id='L58'>58</a><a href='#L59' id='L59'>59</a><a href='#L60' id='L60'>60</a><a href='#L61' id='L61'>61</a><a href='#L62' id='L62'>62</a><a href='#L63' id='L63'>63</a><a href='#L64' id='L64'>64</a><a href='#L65' id='L65'>65</a><a href='#L66' id='L66'>66</a><a href='#L67' id='L67'>67</a><a href='#L68' id='L68'>68</a><a href='#L69' id='L69'>69</a><a href='#L70' id='L70'>70</a><a href='#L71' id='L71'>71</a><a href='#L72' id='L72'>72</a><a href='#L73' id='L73'>73</a><a href='#L74' id='L74'>74</a><a href='#L75' id='L75'>75</a><a href='#L76' id='L76'>76</a><a href='#L77' id='L77'>77</a><a href='#L78' id='L78'>78</a><a href='#L79' id='L79'>79</a><a href='#L80' id='L80'>80</a><a href='#L81' id='L81'>81</a><a href='#L82' id='L82'>82</a><a href='#L83' id='L83'>83</a><a href='#L84' id='L84'>84</a><a href='#L85' id='L85'>85</a><a href='#L86' id='L86'>86</a><a href='#L87' id='L87'>87</a><a href='#L88' id='L88'>88</a><a href='#L89' id='L89'>89</a><a href='#L90' id='L90'>90</a><a href='#L91' id='L91'>91</a><a href='#L92' id='L92'>92</a><a href='#L93' id='L93'>93</a><a href='#L94' id='L94'>94</a><a href='#L95' id='L95'>95</a><a href='#L96' id='L96'>96</a><a href='#L97' id='L97'>97</a><a href='#L98' id='L98'>98</a><a href='#L99' id='L99'>99</a><a href='#L100' id='L100'>100</a><a href='#L101' id='L101'>101</a><a href='#L102' id='L102'>102</a><a href='#L103' id='L103'>103</a><a href='#L104' id='L104'>104</a><a href='#L105' id='L105'>105</a><a href='#L106' id='L106'>106</a><a href='#L107' id='L107'>107</a><a href='#L108' id='L108'>108</a><a href='#L109' id='L109'>109</a><a href='#L110' id='L110'>110</a><a href='#L111' id='L111'>111</a><a href='#L112' id='L112'>112</a><a href='#L113' id='L113'>113</a><a href='#L114' id='L114'>114</a><a href='#L115' id='L115'>115</a><a href='#L116' id='L116'>116</a><a href='#L117' id='L117'>117</a><a href='#L118' id='L118'>118</a><a href='#L119' id='L119'>119</a><a href='#L120' id='L120'>120</a><a href='#L121' id='L121'>121</a><a href='#L122' id='L122'>122</a><a href='#L123' id='L123'>123</a><a href='#L124' id='L124'>124</a><a href='#L125' id='L125'>125</a><a href='#L126' id='L126'>126</a><a href='#L127' id='L127'>127</a><a href='#L128' id='L128'>128</a><a href='#L129' id='L129'>129</a><a href='#L130' id='L130'>130</a><a href='#L131' id='L131'>131</a><a href='#L132' id='L132'>132</a><a href='#L133' id='L133'>133</a><a href='#L134' id='L134'>134</a><a href='#L135' id='L135'>135</a><a href='#L136' id='L136'>136</a><a href='#L137' id='L137'>137</a><a href='#L138' id='L138'>138</a><a href='#L139' id='L139'>139</a><a href='#L140' id='L140'>140</a><a href='#L141' id='L141'>141</a><a href='#L142' id='L142'>142</a><a href='#L143' id='L143'>143</a><a href='#L144' id='L144'>144</a><a href='#L145' id='L145'>145</a><a href='#L146' id='L146'>146</a><a href='#L147' id='L147'>147</a><a href='#L148' id='L148'>148</a><a href='#L149' id='L149'>149</a><a href='#L150' id='L150'>150</a><a href='#L151' id='L151'>151</a><a href='#L152' id='L152'>152</a><a href='#L153' id='L153'>153</a><a href='#L154' id='L154'>154</a><a href='#L155' id='L155'>155</a><a href='#L156' id='L156'>156</a><a href='#L157' id='L157'>157</a><a href='#L158' id='L158'>158</a><a href='#L159' id='L159'>159</a><a href='#L160' id='L160'>160</a><a href='#L161' id='L161'>161</a><a href='#L162' id='L162'>162</a><a href='#L163' id='L163'>163</a><a href='#L164' id='L164'>164</a><a href='#L165' id='L165'>165</a><a href='#L166' id='L166'>166</a><a href='#L167' id='L167'>167</a><a href='#L168' id='L168'>168</a><a href='#L169' id='L169'>169</a><a href='#L170' id='L170'>170</a><a href='#L171' id='L171'>171</a><a href='#L172' id='L172'>172</a><a href='#L173' id='L173'>173</a><a href='#L174' id='L174'>174</a><a href='#L175' id='L175'>175</a><a href='#L176' id='L176'>176</a><a href='#L177' id='L177'>177</a><a href='#L178' id='L178'>178</a><a href='#L179' id='L179'>179</a><a href='#L180' id='L180'>180</a><a href='#L181' id='L181'>181</a><a href='#L182' id='L182'>182</a><a href='#L183' id='L183'>183</a><a href='#L184' id='L184'>184</a><a href='#L185' id='L185'>185</a><a href='#L186' id='L186'>186</a><a href='#L187' id='L187'>187</a><a href='#L188' id='L188'>188</a><a href='#L189' id='L189'>189</a><a href='#L190' id='L190'>190</a><a href='#L191' id='L191'>191</a><a href='#L192' id='L192'>192</a><a href='#L193' id='L193'>193</a><a href='#L194' id='L194'>194</a><a href='#L195' id='L195'>195</a><a href='#L196' id='L196'>196</a><a href='#L197' id='L197'>197</a><a href='#L198' id='L198'>198</a><a href='#L199' id='L199'>199</a><a href='#L200' id='L200'>200</a><a href='#L201' id='L201'>201</a><a href='#L202' id='L202'>202</a><a href='#L203' id='L203'>203</a><a href='#L204' id='L204'>204</a><a href='#L205' id='L205'>205</a><a href='#L206' id='L206'>206</a><a href='#L207' id='L207'>207</a><a href='#L208' id='L208'>208</a><a href='#L209' id='L209'>209</a><a href='#L210' id='L210'>210</a><a href='#L211' id='L211'>211</a><a href='#L212' id='L212'>212</a><a href='#L213' id='L213'>213</a><a href='#L214' id='L214'>214</a><a href='#L215' id='L215'>215</a><a href='#L216' id='L216'>216</a><a href='#L217' id='L217'>217</a><a href='#L218' id='L218'>218</a><a href='#L219' id='L219'>219</a><a href='#L220' id='L220'>220</a><a href='#L221' id='L221'>221</a><a href='#L222' id='L222'>222</a><a href='#L223' id='L223'>223</a><a href='#L224' id='L224'>224</a><a href='#L225' id='L225'>225</a><a href='#L226' id='L226'>226</a><a href='#L227' id='L227'>227</a><a href='#L228' id='L228'>228</a><a href='#L229' id='L229'>229</a><a href='#L230' id='L230'>230</a><a href='#L231' id='L231'>231</a><a href='#L232' id='L232'>232</a><a href='#L233' id='L233'>233</a><a href='#L234' id='L234'>234</a><a href='#L235' id='L235'>235</a><a href='#L236' id='L236'>236</a><a href='#L237' id='L237'>237</a><a href='#L238' id='L238'>238</a><a href='#L239' id='L239'>239</a><a href='#L240' id='L240'>240</a><a href='#L241' id='L241'>241</a><a href='#L242' id='L242'>242</a><a href='#L243' id='L243'>243</a><a href='#L244' id='L244'>244</a><a href='#L245' id='L245'>245</a><a href='#L246' id='L246'>246</a><a href='#L247' id='L247'>247</a><a href='#L248' id='L248'>248</a><a href='#L249' id='L249'>249</a><a href='#L250' id='L250'>250</a><a href='#L251' id='L251'>251</a><a href='#L252' id='L252'>252</a><a href='#L253' id='L253'>253</a><a href='#L254' id='L254'>254</a><a href='#L255' id='L255'>255</a><a href='#L256' id='L256'>256</a><a href='#L257' id='L257'>257</a><a href='#L258' id='L258'>258</a><a href='#L259' id='L259'>259</a><a href='#L260' id='L260'>260</a><a href='#L261' id='L261'>261</a><a href='#L262' id='L262'>262</a><a href='#L263' id='L263'>263</a><a href='#L264' id='L264'>264</a><a href='#L265' id='L265'>265</a><a href='#L266' id='L266'>266</a><a href='#L267' id='L267'>267</a><a href='#L268' id='L268'>268</a><a href='#L269' id='L269'>269</a><a href='#L270' id='L270'>270</a><a href='#L271' id='L271'>271</a><a href='#L272' id='L272'>272</a><a href='#L273' id='L273'>273</a><a href='#L274' id='L274'>274</a><a href='#L275' id='L275'>275</a><a href='#L276' id='L276'>276</a><a href='#L277' id='L277'>277</a><a href='#L278' id='L278'>278</a><a href='#L279' id='L279'>279</a><a href='#L280' id='L280'>280</a><a href='#L281' id='L281'>281</a><a href='#L282' id='L282'>282</a><a href='#L283' id='L283'>283</a><a href='#L284' id='L284'>284</a><a href='#L285' id='L285'>285</a><a href='#L286' id='L286'>286</a><a href='#L287' id='L287'>287</a><a href='#L288' id='L288'>288</a><a href='#L289' id='L289'>289</a><a href='#L290' id='L290'>290</a><a href='#L291' id='L291'>291</a><a href='#L292' id='L292'>292</a><a href='#L293' id='L293'>293</a><a href='#L294' id='L294'>294</a><a href='#L295' id='L295'>295</a><a href='#L296' id='L296'>296</a><a href='#L297' id='L297'>297</a><a href='#L298' id='L298'>298</a><a href='#L299' id='L299'>299</a><a href='#L300' id='L300'>300</a><a href='#L301' id='L301'>301</a><a href='#L302' id='L302'>302</a><a href='#L303' id='L303'>303</a><a href='#L304' id='L304'>304</a><a href='#L305' id='L305'>305</a><a href='#L306' id='L306'>306</a><a href='#L307' id='L307'>307</a><a href='#L308' id='L308'>308</a><a href='#L309' id='L309'>309</a><a href='#L310' id='L310'>310</a><a href='#L311' id='L311'>311</a><a href='#L312' id='L312'>312</a><a href='#L313' id='L313'>313</a><a href='#L314' id='L314'>314</a><a href='#L315' id='L315'>315</a><a href='#L316' id='L316'>316</a><a href='#L317' id='L317'>317</a><a href='#L318' id='L318'>318</a><a href='#L319' id='L319'>319</a><a href='#L320' id='L320'>320</a><a href='#L321' id='L321'>321</a><a href='#L322' id='L322'>322</a><a href='#L323' id='L323'>323</a><a href='#L324' id='L324'>324</a><a href='#L325' id='L325'>325</a><a href='#L326' id='L326'>326</a><a href='#L327' id='L327'>327</a><a href='#L328' id='L328'>328</a><a href='#L329' id='L329'>329</a><a href='#L330' id='L330'>330</a><a href='#L331' id='L331'>331</a><a href='#L332' id='L332'>332</a><a href='#L333' id='L333'>333</a><a href='#L334' id='L334'>334</a><a href='#L335' id='L335'>335</a><a href='#L336' id='L336'>336</a><a href='#L337' id='L337'>337</a><a href='#L338' id='L338'>338</a><a href='#L339' id='L339'>339</a><a href='#L340' id='L340'>340</a><a href='#L341' id='L341'>341</a><a href='#L342' id='L342'>342</a><a href='#L343' id='L343'>343</a><a href='#L344' id='L344'>344</a><a href='#L345' id='L345'>345</a><a href='#L346' id='L346'>346</a><a href='#L347' id='L347'>347</a><a href='#L348' id='L348'>348</a><a href='#L349' id='L349'>349</a><a href='#L350' id='L350'>350</a><a href='#L351' id='L351'>351</a><a href='#L352' id='L352'>352</a><a href='#L353' id='L353'>353</a><a href='#L354' id='L354'>354</a><a href='#L355' id='L355'>355</a><a href='#L356' id='L356'>356</a><a href='#L357' id='L357'>357</a><a href='#L358' id='L358'>358</a><a href='#L359' id='L359'>359</a><a href='#L360' id='L360'>360</a><a href='#L361' id='L361'>361</a><a href='#L362' id='L362'>362</a><a href='#L363' id='L363'>363</a><a href='#L364' id='L364'>364</a><a href='#L365' id='L365'>365</a><a href='#L366' id='L366'>366</a><a href='#L367' id='L367'>367</a><a href='#L368' id='L368'>368</a><a href='#L369' id='L369'>369</a><a href='#L370' id='L370'>370</a><a href='#L371' id='L371'>371</a><a href='#L372' id='L372'>372</a><a href='#L373' id='L373'>373</a><a href='#L374' id='L374'>374</a><a href='#L375' id='L375'>375</a><a href='#L376' id='L376'>376</a><a href='#L377' id='L377'>377</a><a href='#L378' id='L378'>378</a><a href='#L379' id='L379'>379</a><a href='#L380' id='L380'>380</a><a href='#L381' id='L381'>381</a><a href='#L382' id='L382'>382</a><a href='#L383' id='L383'>383</a><a href='#L384' id='L384'>384</a><a href='#L385' id='L385'>385</a><a href='#L386' id='L386'>386</a><a href='#L387' id='L387'>387</a><a href='#L388' id='L388'>388</a><a href='#L389' id='L389'>389</a><a href='#L390' id='L390'>390</a><a href='#L391' id='L391'>391</a><a href='#L392' id='L392'>392</a><a href='#L393' id='L393'>393</a><a href='#L394' id='L394'>394</a><a href='#L395' id='L395'>395</a><a href='#L396' id='L396'>396</a><a href='#L397' id='L397'>397</a><a href='#L398' id='L398'>398</a><a href='#L399' id='L399'>399</a><a href='#L400' id='L400'>400</a><a href='#L401' id='L401'>401</a><a href='#L402' id='L402'>402</a><a href='#L403' id='L403'>403</a><a href='#L404' id='L404'>404</a><a href='#L405' id='L405'>405</a><a href='#L406' id='L406'>406</a><a href='#L407' id='L407'>407</a><a href='#L408' id='L408'>408</a><a href='#L409' id='L409'>409</a><a href='#L410' id='L410'>410</a><a href='#L411' id='L411'>411</a><a href='#L412' id='L412'>412</a><a href='#L413' id='L413'>413</a><a href='#L414' id='L414'>414</a><a href='#L415' id='L415'>415</a><a href='#L416' id='L416'>416</a><a href='#L417' id='L417'>417</a><a href='#L418' id='L418'>418</a><a href='#L419' id='L419'>419</a><a href='#L420' id='L420'>420</a><a href='#L421' id='L421'>421</a><a href='#L422' id='L422'>422</a><a href='#L423' id='L423'>423</a><a href='#L424' id='L424'>424</a><a href='#L425' id='L425'>425</a><a href='#L426' id='L426'>426</a><a href='#L427' id='L427'>427</a><a href='#L428' id='L428'>428</a><a href='#L429' id='L429'>429</a><a href='#L430' id='L430'>430</a><a href='#L431' id='L431'>431</a><a href='#L432' id='L432'>432</a><a href='#L433' id='L433'>433</a><a href='#L434' id='L434'>434</a><a href='#L435' id='L435'>435</a><a href='#L436' id='L436'>436</a><a href='#L437' id='L437'>437</a><a href='#L438' id='L438'>438</a><a href='#L439' id='L439'>439</a><a href='#L440' id='L440'>440</a><a href='#L441' id='L441'>441</a><a href='#L442' id='L442'>442</a><a href='#L443' id='L443'>443</a><a href='#L444' id='L444'>444</a><a href='#L445' id='L445'>445</a><a href='#L446' id='L446'>446</a><a href='#L447' id='L447'>447</a><a href='#L448' id='L448'>448</a><a href='#L449' id='L449'>449</a><a href='#L450' id='L450'>450</a><a href='#L451' id='L451'>451</a><a href='#L452' id='L452'>452</a><a href='#L453' id='L453'>453</a><a href='#L454' id='L454'>454</a><a href='#L455' id='L455'>455</a><a href='#L456' id='L456'>456</a><a href='#L457' id='L457'>457</a><a href='#L458' id='L458'>458</a><a href='#L459' id='L459'>459</a><a href='#L460' id='L460'>460</a><a href='#L461' id='L461'>461</a><a href='#L462' id='L462'>462</a><a href='#L463' id='L463'>463</a><a href='#L464' id='L464'>464</a><a href='#L465' id='L465'>465</a><a href='#L466' id='L466'>466</a><a href='#L467' id='L467'>467</a><a href='#L468' id='L468'>468</a><a href='#L469' id='L469'>469</a><a href='#L470' id='L470'>470</a><a href='#L471' id='L471'>471</a><a href='#L472' id='L472'>472</a><a href='#L473' id='L473'>473</a><a href='#L474' id='L474'>474</a><a href='#L475' id='L475'>475</a><a href='#L476' id='L476'>476</a><a href='#L477' id='L477'>477</a><a href='#L478' id='L478'>478</a><a href='#L479' id='L479'>479</a><a href='#L480' id='L480'>480</a><a href='#L481' id='L481'>481</a><a href='#L482' id='L482'>482</a><a href='#L483' id='L483'>483</a><a href='#L484' id='L484'>484</a><a href='#L485' id='L485'>485</a><a href='#L486' id='L486'>486</a><a href='#L487' id='L487'>487</a><a href='#L488' id='L488'>488</a><a href='#L489' id='L489'>489</a><a href='#L490' id='L490'>490</a><a href='#L491' id='L491'>491</a><a href='#L492' id='L492'>492</a><a href='#L493' id='L493'>493</a><a href='#L494' id='L494'>494</a><a href='#L495' id='L495'>495</a><a href='#L496' id='L496'>496</a><a href='#L497' id='L497'>497</a><a href='#L498' id='L498'>498</a><a href='#L499' id='L499'>499</a><a href='#L500' id='L500'>500</a><a href='#L501' id='L501'>501</a><a href='#L502' id='L502'>502</a><a href='#L503' id='L503'>503</a><a href='#L504' id='L504'>504</a><a href='#L505' id='L505'>505</a><a href='#L506' id='L506'>506</a><a href='#L507' id='L507'>507</a><a href='#L508' id='L508'>508</a><a href='#L509' id='L509'>509</a><a href='#L510' id='L510'>510</a><a href='#L511' id='L511'>511</a><a href='#L512' id='L512'>512</a><a href='#L513' id='L513'>513</a><a href='#L514' id='L514'>514</a><a href='#L515' id='L515'>515</a><a href='#L516' id='L516'>516</a><a href='#L517' id='L517'>517</a><a href='#L518' id='L518'>518</a><a href='#L519' id='L519'>519</a><a href='#L520' id='L520'>520</a><a href='#L521' id='L521'>521</a><a href='#L522' id='L522'>522</a><a href='#L523' id='L523'>523</a><a href='#L524' id='L524'>524</a><a href='#L525' id='L525'>525</a><a href='#L526' id='L526'>526</a><a href='#L527' id='L527'>527</a><a href='#L528' id='L528'>528</a><a href='#L529' id='L529'>529</a><a href='#L530' id='L530'>530</a><a href='#L531' id='L531'>531</a><a href='#L532' id='L532'>532</a><a href='#L533' id='L533'>533</a><a href='#L534' id='L534'>534</a><a href='#L535' id='L535'>535</a><a href='#L536' id='L536'>536</a><a href='#L537' id='L537'>537</a><a href='#L538' id='L538'>538</a><a href='#L539' id='L539'>539</a><a href='#L540' id='L540'>540</a><a href='#L541' id='L541'>541</a><a href='#L542' id='L542'>542</a><a href='#L543' id='L543'>543</a><a href='#L544' id='L544'>544</a><a href='#L545' id='L545'>545</a><a href='#L546' id='L546'>546</a><a href='#L547' id='L547'>547</a><a href='#L548' id='L548'>548</a><a href='#L549' id='L549'>549</a><a href='#L550' id='L550'>550</a><a href='#L551' id='L551'>551</a><a href='#L552' id='L552'>552</a><a href='#L553' id='L553'>553</a><a href='#L554' id='L554'>554</a><a href='#L555' id='L555'>555</a><a href='#L556' id='L556'>556</a><a href='#L557' id='L557'>557</a><a href='#L558' id='L558'>558</a><a href='#L559' id='L559'>559</a><a href='#L560' id='L560'>560</a><a href='#L561' id='L561'>561</a><a href='#L562' id='L562'>562</a><a href='#L563' id='L563'>563</a><a href='#L564' id='L564'>564</a><a href='#L565' id='L565'>565</a><a href='#L566' id='L566'>566</a><a href='#L567' id='L567'>567</a><a href='#L568' id='L568'>568</a><a href='#L569' id='L569'>569</a><a href='#L570' id='L570'>570</a><a href='#L571' id='L571'>571</a><a href='#L572' id='L572'>572</a><a href='#L573' id='L573'>573</a><a href='#L574' id='L574'>574</a><a href='#L575' id='L575'>575</a><a href='#L576' id='L576'>576</a><a href='#L577' id='L577'>577</a><a href='#L578' id='L578'>578</a><a href='#L579' id='L579'>579</a><a href='#L580' id='L580'>580</a><a href='#L581' id='L581'>581</a><a href='#L582' id='L582'>582</a><a href='#L583' id='L583'>583</a><a href='#L584' id='L584'>584</a><a href='#L585' id='L585'>585</a><a href='#L586' id='L586'>586</a><a href='#L587' id='L587'>587</a><a href='#L588' id='L588'>588</a><a href='#L589' id='L589'>589</a><a href='#L590' id='L590'>590</a><a href='#L591' id='L591'>591</a><a href='#L592' id='L592'>592</a><a href='#L593' id='L593'>593</a><a href='#L594' id='L594'>594</a><a href='#L595' id='L595'>595</a><a href='#L596' id='L596'>596</a><a href='#L597' id='L597'>597</a><a href='#L598' id='L598'>598</a><a href='#L599' id='L599'>599</a><a href='#L600' id='L600'>600</a><a href='#L601' id='L601'>601</a><a href='#L602' id='L602'>602</a><a href='#L603' id='L603'>603</a><a href='#L604' id='L604'>604</a><a href='#L605' id='L605'>605</a><a href='#L606' id='L606'>606</a><a href='#L607' id='L607'>607</a><a href='#L608' id='L608'>608</a><a href='#L609' id='L609'>609</a><a href='#L610' id='L610'>610</a><a href='#L611' id='L611'>611</a><a href='#L612' id='L612'>612</a><a href='#L613' id='L613'>613</a><a href='#L614' id='L614'>614</a><a href='#L615' id='L615'>615</a><a href='#L616' id='L616'>616</a><a href='#L617' id='L617'>617</a><a href='#L618' id='L618'>618</a><a href='#L619' id='L619'>619</a><a href='#L620' id='L620'>620</a><a href='#L621' id='L621'>621</a><a href='#L622' id='L622'>622</a><a href='#L623' id='L623'>623</a><a href='#L624' id='L624'>624</a><a href='#L625' id='L625'>625</a><a href='#L626' id='L626'>626</a><a href='#L627' id='L627'>627</a><a href='#L628' id='L628'>628</a><a href='#L629' id='L629'>629</a><a href='#L630' id='L630'>630</a><a href='#L631' id='L631'>631</a><a href='#L632' id='L632'>632</a><a href='#L633' id='L633'>633</a><a href='#L634' id='L634'>634</a><a href='#L635' id='L635'>635</a><a href='#L636' id='L636'>636</a><a href='#L637' id='L637'>637</a><a href='#L638' id='L638'>638</a><a href='#L639' id='L639'>639</a><a href='#L640' id='L640'>640</a><a href='#L641' id='L641'>641</a><a href='#L642' id='L642'>642</a><a href='#L643' id='L643'>643</a><a href='#L644' id='L644'>644</a><a href='#L645' id='L645'>645</a><a href='#L646' id='L646'>646</a><a href='#L647' id='L647'>647</a><a href='#L648' id='L648'>648</a><a href='#L649' id='L649'>649</a><a href='#L650' id='L650'>650</a><a href='#L651' id='L651'>651</a><a href='#L652' id='L652'>652</a><a href='#L653' id='L653'>653</a><a href='#L654' id='L654'>654</a><a href='#L655' id='L655'>655</a><a href='#L656' id='L656'>656</a><a href='#L657' id='L657'>657</a><a href='#L658' id='L658'>658</a><a href='#L659' id='L659'>659</a><a href='#L660' id='L660'>660</a><a href='#L661' id='L661'>661</a><a href='#L662' id='L662'>662</a><a href='#L663' id='L663'>663</a><a href='#L664' id='L664'>664</a><a href='#L665' id='L665'>665</a><a href='#L666' id='L666'>666</a><a href='#L667' id='L667'>667</a><a href='#L668' id='L668'>668</a><a href='#L669' id='L669'>669</a><a href='#L670' id='L670'>670</a><a href='#L671' id='L671'>671</a><a href='#L672' id='L672'>672</a><a href='#L673' id='L673'>673</a><a href='#L674' id='L674'>674</a><a href='#L675' id='L675'>675</a><a href='#L676' id='L676'>676</a><a href='#L677' id='L677'>677</a><a href='#L678' id='L678'>678</a><a href='#L679' id='L679'>679</a><a href='#L680' id='L680'>680</a><a href='#L681' id='L681'>681</a><a href='#L682' id='L682'>682</a><a href='#L683' id='L683'>683</a><a href='#L684' id='L684'>684</a><a href='#L685' id='L685'>685</a><a href='#L686' id='L686'>686</a><a href='#L687' id='L687'>687</a><a href='#L688' id='L688'>688</a><a href='#L689' id='L689'>689</a><a href='#L690' id='L690'>690</a><a href='#L691' id='L691'>691</a><a href='#L692' id='L692'>692</a><a href='#L693' id='L693'>693</a><a href='#L694' id='L694'>694</a><a href='#L695' id='L695'>695</a><a href='#L696' id='L696'>696</a><a href='#L697' id='L697'>697</a><a href='#L698' id='L698'>698</a><a href='#L699' id='L699'>699</a><a href='#L700' id='L700'>700</a><a href='#L701' id='L701'>701</a><a href='#L702' id='L702'>702</a><a href='#L703' id='L703'>703</a><a href='#L704' id='L704'>704</a><a href='#L705' id='L705'>705</a><a href='#L706' id='L706'>706</a><a href='#L707' id='L707'>707</a><a href='#L708' id='L708'>708</a><a href='#L709' id='L709'>709</a><a href='#L710' id='L710'>710</a><a href='#L711' id='L711'>711</a><a href='#L712' id='L712'>712</a><a href='#L713' id='L713'>713</a><a href='#L714' id='L714'>714</a><a href='#L715' id='L715'>715</a><a href='#L716' id='L716'>716</a><a href='#L717' id='L717'>717</a><a href='#L718' id='L718'>718</a><a href='#L719' id='L719'>719</a><a href='#L720' id='L720'>720</a><a href='#L721' id='L721'>721</a><a href='#L722' id='L722'>722</a><a href='#L723' id='L723'>723</a><a href='#L724' id='L724'>724</a><a href='#L725' id='L725'>725</a><a href='#L726' id='L726'>726</a><a href='#L727' id='L727'>727</a><a href='#L728' id='L728'>728</a><a href='#L729' id='L729'>729</a><a href='#L730' id='L730'>730</a><a href='#L731' id='L731'>731</a><a href='#L732' id='L732'>732</a><a href='#L733' id='L733'>733</a><a href='#L734' id='L734'>734</a><a href='#L735' id='L735'>735</a><a href='#L736' id='L736'>736</a><a href='#L737' id='L737'>737</a><a href='#L738' id='L738'>738</a><a href='#L739' id='L739'>739</a><a href='#L740' id='L740'>740</a><a href='#L741' id='L741'>741</a><a href='#L742' id='L742'>742</a><a href='#L743' id='L743'>743</a><a href='#L744' id='L744'>744</a><a href='#L745' id='L745'>745</a><a href='#L746' id='L746'>746</a><a href='#L747' id='L747'>747</a><a href='#L748' id='L748'>748</a><a href='#L749' id='L749'>749</a><a href='#L750' id='L750'>750</a><a href='#L751' id='L751'>751</a><a href='#L752' id='L752'>752</a><a href='#L753' id='L753'>753</a><a href='#L754' id='L754'>754</a><a href='#L755' id='L755'>755</a><a href='#L756' id='L756'>756</a><a href='#L757' id='L757'>757</a><a href='#L758' id='L758'>758</a><a href='#L759' id='L759'>759</a><a href='#L760' id='L760'>760</a><a href='#L761' id='L761'>761</a><a href='#L762' id='L762'>762</a><a href='#L763' id='L763'>763</a><a href='#L764' id='L764'>764</a><a href='#L765' id='L765'>765</a><a href='#L766' id='L766'>766</a><a href='#L767' id='L767'>767</a><a href='#L768' id='L768'>768</a><a href='#L769' id='L769'>769</a><a href='#L770' id='L770'>770</a><a href='#L771' id='L771'>771</a><a href='#L772' id='L772'>772</a><a href='#L773' id='L773'>773</a><a href='#L774' id='L774'>774</a><a href='#L775' id='L775'>775</a><a href='#L776' id='L776'>776</a><a href='#L777' id='L777'>777</a><a href='#L778' id='L778'>778</a><a href='#L779' id='L779'>779</a><a href='#L780' id='L780'>780</a><a href='#L781' id='L781'>781</a><a href='#L782' id='L782'>782</a><a href='#L783' id='L783'>783</a><a href='#L784' id='L784'>784</a><a href='#L785' id='L785'>785</a><a href='#L786' id='L786'>786</a><a href='#L787' id='L787'>787</a><a href='#L788' id='L788'>788</a><a href='#L789' id='L789'>789</a><a href='#L790' id='L790'>790</a><a href='#L791' id='L791'>791</a><a href='#L792' id='L792'>792</a><a href='#L793' id='L793'>793</a><a href='#L794' id='L794'>794</a><a href='#L795' id='L795'>795</a><a href='#L796' id='L796'>796</a><a href='#L797' id='L797'>797</a><a href='#L798' id='L798'>798</a><a href='#L799' id='L799'>799</a><a href='#L800' id='L800'>800</a><a href='#L801' id='L801'>801</a><a href='#L802' id='L802'>802</a><a href='#L803' id='L803'>803</a><a href='#L804' id='L804'>804</a><a href='#L805' id='L805'>805</a><a href='#L806' id='L806'>806</a><a href='#L807' id='L807'>807</a><a href='#L808' id='L808'>808</a><a href='#L809' id='L809'>809</a><a href='#L810' id='L810'>810</a><a href='#L811' id='L811'>811</a><a href='#L812' id='L812'>812</a><a href='#L813' id='L813'>813</a><a href='#L814' id='L814'>814</a><a href='#L815' id='L815'>815</a><a href='#L816' id='L816'>816</a><a href='#L817' id='L817'>817</a><a href='#L818' id='L818'>818</a><a href='#L819' id='L819'>819</a><a href='#L820' id='L820'>820</a><a href='#L821' id='L821'>821</a><a href='#L822' id='L822'>822</a><a href='#L823' id='L823'>823</a><a href='#L824' id='L824'>824</a><a href='#L825' id='L825'>825</a><a href='#L826' id='L826'>826</a><a href='#L827' id='L827'>827</a><a href='#L828' id='L828'>828</a><a href='#L829' id='L829'>829</a><a href='#L830' id='L830'>830</a><a href='#L831' id='L831'>831</a><a href='#L832' id='L832'>832</a><a href='#L833' id='L833'>833</a><a href='#L834' id='L834'>834</a><a href='#L835' id='L835'>835</a><a href='#L836' id='L836'>836</a><a href='#L837' id='L837'>837</a><a href='#L838' id='L838'>838</a><a href='#L839' id='L839'>839</a><a href='#L840' id='L840'>840</a><a href='#L841' id='L841'>841</a><a href='#L842' id='L842'>842</a><a href='#L843' id='L843'>843</a><a href='#L844' id='L844'>844</a><a href='#L845' id='L845'>845</a><a href='#L846' id='L846'>846</a><a href='#L847' id='L847'>847</a><a href='#L848' id='L848'>848</a><a href='#L849' id='L849'>849</a><a href='#L850' id='L850'>850</a><a href='#L851' id='L851'>851</a><a href='#L852' id='L852'>852</a><a href='#L853' id='L853'>853</a><a href='#L854' id='L854'>854</a><a href='#L855' id='L855'>855</a><a href='#L856' id='L856'>856</a><a href='#L857' id='L857'>857</a><a href='#L858' id='L858'>858</a><a href='#L859' id='L859'>859</a><a href='#L860' id='L860'>860</a><a href='#L861' id='L861'>861</a><a href='#L862' id='L862'>862</a><a href='#L863' id='L863'>863</a><a href='#L864' id='L864'>864</a><a href='#L865' id='L865'>865</a><a href='#L866' id='L866'>866</a><a href='#L867' id='L867'>867</a><a href='#L868' id='L868'>868</a><a href='#L869' id='L869'>869</a><a href='#L870' id='L870'>870</a><a href='#L871' id='L871'>871</a><a href='#L872' id='L872'>872</a><a href='#L873' id='L873'>873</a><a href='#L874' id='L874'>874</a><a href='#L875' id='L875'>875</a><a href='#L876' id='L876'>876</a><a href='#L877' id='L877'>877</a><a href='#L878' id='L878'>878</a><a href='#L879' id='L879'>879</a><a href='#L880' id='L880'>880</a><a href='#L881' id='L881'>881</a><a href='#L882' id='L882'>882</a><a href='#L883' id='L883'>883</a><a href='#L884' id='L884'>884</a><a href='#L885' id='L885'>885</a><a href='#L886' id='L886'>886</a><a href='#L887' id='L887'>887</a><a href='#L888' id='L888'>888</a><a href='#L889' id='L889'>889</a><a href='#L890' id='L890'>890</a><a href='#L891' id='L891'>891</a><a href='#L892' id='L892'>892</a><a href='#L893' id='L893'>893</a><a href='#L894' id='L894'>894</a><a href='#L895' id='L895'>895</a><a href='#L896' id='L896'>896</a><a href='#L897' id='L897'>897</a><a href='#L898' id='L898'>898</a><a href='#L899' id='L899'>899</a><a href='#L900' id='L900'>900</a><a href='#L901' id='L901'>901</a><a href='#L902' id='L902'>902</a><a href='#L903' id='L903'>903</a><a href='#L904' id='L904'>904</a><a href='#L905' id='L905'>905</a><a href='#L906' id='L906'>906</a><a href='#L907' id='L907'>907</a><a href='#L908' id='L908'>908</a><a href='#L909' id='L909'>909</a><a href='#L910' id='L910'>910</a><a href='#L911' id='L911'>911</a><a href='#L912' id='L912'>912</a><a href='#L913' id='L913'>913</a><a href='#L914' id='L914'>914</a><a href='#L915' id='L915'>915</a><a href='#L916' id='L916'>916</a><a href='#L917' id='L917'>917</a><a href='#L918' id='L918'>918</a><a href='#L919' id='L919'>919</a><a href='#L920' id='L920'>920</a><a href='#L921' id='L921'>921</a><a href='#L922' id='L922'>922</a><a href='#L923' id='L923'>923</a><a href='#L924' id='L924'>924</a><a href='#L925' id='L925'>925</a><a href='#L926' id='L926'>926</a><a href='#L927' id='L927'>927</a><a href='#L928' id='L928'>928</a><a href='#L929' id='L929'>929</a><a href='#L930' id='L930'>930</a><a href='#L931' id='L931'>931</a><a href='#L932' id='L932'>932</a><a href='#L933' id='L933'>933</a><a href='#L934' id='L934'>934</a><a href='#L935' id='L935'>935</a><a href='#L936' id='L936'>936</a><a href='#L937' id='L937'>937</a><a href='#L938' id='L938'>938</a><a href='#L939' id='L939'>939</a><a href='#L940' id='L940'>940</a><a href='#L941' id='L941'>941</a><a href='#L942' id='L942'>942</a><a href='#L943' id='L943'>943</a><a href='#L944' id='L944'>944</a><a href='#L945' id='L945'>945</a><a href='#L946' id='L946'>946</a><a href='#L947' id='L947'>947</a><a href='#L948' id='L948'>948</a><a href='#L949' id='L949'>949</a><a href='#L950' id='L950'>950</a><a href='#L951' id='L951'>951</a><a href='#L952' id='L952'>952</a><a href='#L953' id='L953'>953</a><a href='#L954' id='L954'>954</a><a href='#L955' id='L955'>955</a><a href='#L956' id='L956'>956</a><a href='#L957' id='L957'>957</a><a href='#L958' id='L958'>958</a><a href='#L959' id='L959'>959</a><a href='#L960' id='L960'>960</a><a href='#L961' id='L961'>961</a><a href='#L962' id='L962'>962</a><a href='#L963' id='L963'>963</a><a href='#L964' id='L964'>964</a><a href='#L965' id='L965'>965</a><a href='#L966' id='L966'>966</a><a href='#L967' id='L967'>967</a><a href='#L968' id='L968'>968</a><a href='#L969' id='L969'>969</a><a href='#L970' id='L970'>970</a><a href='#L971' id='L971'>971</a><a href='#L972' id='L972'>972</a><a href='#L973' id='L973'>973</a><a href='#L974' id='L974'>974</a><a href='#L975' id='L975'>975</a><a href='#L976' id='L976'>976</a><a href='#L977' id='L977'>977</a><a href='#L978' id='L978'>978</a><a href='#L979' id='L979'>979</a><a href='#L980' id='L980'>980</a><a href='#L981' id='L981'>981</a><a href='#L982' id='L982'>982</a><a href='#L983' id='L983'>983</a><a href='#L984' id='L984'>984</a><a href='#L985' id='L985'>985</a><a href='#L986' id='L986'>986</a><a href='#L987' id='L987'>987</a><a href='#L988' id='L988'>988</a><a href='#L989' id='L989'>989</a><a href='#L990' id='L990'>990</a><a href='#L991' id='L991'>991</a><a href='#L992' id='L992'>992</a><a href='#L993' id='L993'>993</a><a href='#L994' id='L994'>994</a><a href='#L995' id='L995'>995</a><a href='#L996' id='L996'>996</a><a href='#L997' id='L997'>997</a><a href='#L998' id='L998'>998</a><a href='#L999' id='L999'>999</a><a href='#L1000' id='L1000'>1000</a><a href='#L1001' id='L1001'>1001</a><a href='#L1002' id='L1002'>1002</a><a href='#L1003' id='L1003'>1003</a><a href='#L1004' id='L1004'>1004</a><a href='#L1005' id='L1005'>1005</a><a href='#L1006' id='L1006'>1006</a><a href='#L1007' id='L1007'>1007</a><a href='#L1008' id='L1008'>1008</a><a href='#L1009' id='L1009'>1009</a><a href='#L1010' id='L1010'>1010</a><a href='#L1011' id='L1011'>1011</a><a href='#L1012' id='L1012'>1012</a><a href='#L1013' id='L1013'>1013</a><a href='#L1014' id='L1014'>1014</a><a href='#L1015' id='L1015'>1015</a><a href='#L1016' id='L1016'>1016</a><a href='#L1017' id='L1017'>1017</a><a href='#L1018' id='L1018'>1018</a><a href='#L1019' id='L1019'>1019</a><a href='#L1020' id='L1020'>1020</a><a href='#L1021' id='L1021'>1021</a><a href='#L1022' id='L1022'>1022</a><a href='#L1023' id='L1023'>1023</a><a href='#L1024' id='L1024'>1024</a><a href='#L1025' id='L1025'>1025</a><a href='#L1026' id='L1026'>1026</a><a href='#L1027' id='L1027'>1027</a><a href='#L1028' id='L1028'>1028</a><a href='#L1029' id='L1029'>1029</a><a href='#L1030' id='L1030'>1030</a><a href='#L1031' id='L1031'>1031</a><a href='#L1032' id='L1032'>1032</a><a href='#L1033' id='L1033'>1033</a><a href='#L1034' id='L1034'>1034</a><a href='#L1035' id='L1035'>1035</a><a href='#L1036' id='L1036'>1036</a><a href='#L1037' id='L1037'>1037</a><a href='#L1038' id='L1038'>1038</a><a href='#L1039' id='L1039'>1039</a><a href='#L1040' id='L1040'>1040</a><a href='#L1041' id='L1041'>1041</a><a href='#L1042' id='L1042'>1042</a><a href='#L1043' id='L1043'>1043</a><a href='#L1044' id='L1044'>1044</a><a href='#L1045' id='L1045'>1045</a><a href='#L1046' id='L1046'>1046</a><a href='#L1047' id='L1047'>1047</a><a href='#L1048' id='L1048'>1048</a><a href='#L1049' id='L1049'>1049</a><a href='#L1050' id='L1050'>1050</a><a href='#L1051' id='L1051'>1051</a><a href='#L1052' id='L1052'>1052</a><a href='#L1053' id='L1053'>1053</a><a href='#L1054' id='L1054'>1054</a><a href='#L1055' id='L1055'>1055</a><a href='#L1056' id='L1056'>1056</a><a href='#L1057' id='L1057'>1057</a><a href='#L1058' id='L1058'>1058</a><a href='#L1059' id='L1059'>1059</a><a href='#L1060' id='L1060'>1060</a><a href='#L1061' id='L1061'>1061</a><a href='#L1062' id='L1062'>1062</a><a href='#L1063' id='L1063'>1063</a><a href='#L1064' id='L1064'>1064</a><a href='#L1065' id='L1065'>1065</a><a href='#L1066' id='L1066'>1066</a><a href='#L1067' id='L1067'>1067</a><a href='#L1068' id='L1068'>1068</a><a href='#L1069' id='L1069'>1069</a><a href='#L1070' id='L1070'>1070</a><a href='#L1071' id='L1071'>1071</a><a href='#L1072' id='L1072'>1072</a><a href='#L1073' id='L1073'>1073</a><a href='#L1074' id='L1074'>1074</a><a href='#L1075' id='L1075'>1075</a><a href='#L1076' id='L1076'>1076</a><a href='#L1077' id='L1077'>1077</a><a href='#L1078' id='L1078'>1078</a><a href='#L1079' id='L1079'>1079</a><a href='#L1080' id='L1080'>1080</a><a href='#L1081' id='L1081'>1081</a><a href='#L1082' id='L1082'>1082</a><a href='#L1083' id='L1083'>1083</a><a href='#L1084' id='L1084'>1084</a><a href='#L1085' id='L1085'>1085</a><a href='#L1086' id='L1086'>1086</a><a href='#L1087' id='L1087'>1087</a><a href='#L1088' id='L1088'>1088</a><a href='#L1089' id='L1089'>1089</a><a href='#L1090' id='L1090'>1090</a><a href='#L1091' id='L1091'>1091</a><a href='#L1092' id='L1092'>1092</a><a href='#L1093' id='L1093'>1093</a><a href='#L1094' id='L1094'>1094</a><a href='#L1095' id='L1095'>1095</a><a href='#L1096' id='L1096'>1096</a><a href='#L1097' id='L1097'>1097</a><a href='#L1098' id='L1098'>1098</a><a href='#L1099' id='L1099'>1099</a><a href='#L1100' id='L1100'>1100</a><a href='#L1101' id='L1101'>1101</a><a href='#L1102' id='L1102'>1102</a><a href='#L1103' id='L1103'>1103</a><a href='#L1104' id='L1104'>1104</a><a href='#L1105' id='L1105'>1105</a><a href='#L1106' id='L1106'>1106</a><a href='#L1107' id='L1107'>1107</a><a href='#L1108' id='L1108'>1108</a><a href='#L1109' id='L1109'>1109</a><a href='#L1110' id='L1110'>1110</a><a href='#L1111' id='L1111'>1111</a><a href='#L1112' id='L1112'>1112</a><a href='#L1113' id='L1113'>1113</a><a href='#L1114' id='L1114'>1114</a><a href='#L1115' id='L1115'>1115</a><a href='#L1116' id='L1116'>1116</a><a href='#L1117' id='L1117'>1117</a><a href='#L1118' id='L1118'>1118</a><a href='#L1119' id='L1119'>1119</a><a href='#L1120' id='L1120'>1120</a><a href='#L1121' id='L1121'>1121</a><a href='#L1122' id='L1122'>1122</a><a href='#L1123' id='L1123'>1123</a><a href='#L1124' id='L1124'>1124</a><a href='#L1125' id='L1125'>1125</a><a href='#L1126' id='L1126'>1126</a><a href='#L1127' id='L1127'>1127</a><a href='#L1128' id='L1128'>1128</a><a href='#L1129' id='L1129'>1129</a><a href='#L1130' id='L1130'>1130</a><a href='#L1131' id='L1131'>1131</a><a href='#L1132' id='L1132'>1132</a><a href='#L1133' id='L1133'>1133</a><a href='#L1134' id='L1134'>1134</a><a href='#L1135' id='L1135'>1135</a><a href='#L1136' id='L1136'>1136</a><a href='#L1137' id='L1137'>1137</a><a href='#L1138' id='L1138'>1138</a><a href='#L1139' id='L1139'>1139</a><a href='#L1140' id='L1140'>1140</a><a href='#L1141' id='L1141'>1141</a><a href='#L1142' id='L1142'>1142</a><a href='#L1143' id='L1143'>1143</a><a href='#L1144' id='L1144'>1144</a><a href='#L1145' id='L1145'>1145</a><a href='#L1146' id='L1146'>1146</a><a href='#L1147' id='L1147'>1147</a><a href='#L1148' id='L1148'>1148</a><a href='#L1149' id='L1149'>1149</a><a href='#L1150' id='L1150'>1150</a><a href='#L1151' id='L1151'>1151</a><a href='#L1152' id='L1152'>1152</a><a href='#L1153' id='L1153'>1153</a><a href='#L1154' id='L1154'>1154</a><a href='#L1155' id='L1155'>1155</a><a href='#L1156' id='L1156'>1156</a><a href='#L1157' id='L1157'>1157</a><a href='#L1158' id='L1158'>1158</a><a href='#L1159' id='L1159'>1159</a><a href='#L1160' id='L1160'>1160</a><a href='#L1161' id='L1161'>1161</a><a href='#L1162' id='L1162'>1162</a><a href='#L1163' id='L1163'>1163</a><a href='#L1164' id='L1164'>1164</a><a href='#L1165' id='L1165'>1165</a><a href='#L1166' id='L1166'>1166</a><a href='#L1167' id='L1167'>1167</a><a href='#L1168' id='L1168'>1168</a><a href='#L1169' id='L1169'>1169</a><a href='#L1170' id='L1170'>1170</a><a href='#L1171' id='L1171'>1171</a><a href='#L1172' id='L1172'>1172</a><a href='#L1173' id='L1173'>1173</a><a href='#L1174' id='L1174'>1174</a><a href='#L1175' id='L1175'>1175</a><a href='#L1176' id='L1176'>1176</a><a href='#L1177' id='L1177'>1177</a><a href='#L1178' id='L1178'>1178</a><a href='#L1179' id='L1179'>1179</a><a href='#L1180' id='L1180'>1180</a><a href='#L1181' id='L1181'>1181</a><a href='#L1182' id='L1182'>1182</a><a href='#L1183' id='L1183'>1183</a><a href='#L1184' id='L1184'>1184</a><a href='#L1185' id='L1185'>1185</a><a href='#L1186' id='L1186'>1186</a><a href='#L1187' id='L1187'>1187</a><a href='#L1188' id='L1188'>1188</a><a href='#L1189' id='L1189'>1189</a><a href='#L1190' id='L1190'>1190</a><a href='#L1191' id='L1191'>1191</a><a href='#L1192' id='L1192'>1192</a><a href='#L1193' id='L1193'>1193</a><a href='#L1194' id='L1194'>1194</a><a href='#L1195' id='L1195'>1195</a><a href='#L1196' id='L1196'>1196</a><a href='#L1197' id='L1197'>1197</a><a href='#L1198' id='L1198'>1198</a><a href='#L1199' id='L1199'>1199</a><a href='#L1200' id='L1200'>1200</a><a href='#L1201' id='L1201'>1201</a><a href='#L1202' id='L1202'>1202</a><a href='#L1203' id='L1203'>1203</a><a href='#L1204' id='L1204'>1204</a><a href='#L1205' id='L1205'>1205</a><a href='#L1206' id='L1206'>1206</a><a href='#L1207' id='L1207'>1207</a><a href='#L1208' id='L1208'>1208</a><a href='#L1209' id='L1209'>1209</a><a href='#L1210' id='L1210'>1210</a><a href='#L1211' id='L1211'>1211</a><a href='#L1212' id='L1212'>1212</a><a href='#L1213' id='L1213'>1213</a><a href='#L1214' id='L1214'>1214</a><a href='#L1215' id='L1215'>1215</a><a href='#L1216' id='L1216'>1216</a><a href='#L1217' id='L1217'>1217</a><a href='#L1218' id='L1218'>1218</a><a href='#L1219' id='L1219'>1219</a><a href='#L1220' id='L1220'>1220</a><a href='#L1221' id='L1221'>1221</a><a href='#L1222' id='L1222'>1222</a><a href='#L1223' id='L1223'>1223</a><a href='#L1224' id='L1224'>1224</a><a href='#L1225' id='L1225'>1225</a><a href='#L1226' id='L1226'>1226</a><a href='#L1227' id='L1227'>1227</a><a href='#L1228' id='L1228'>1228</a><a href='#L1229' id='L1229'>1229</a><a href='#L1230' id='L1230'>1230</a><a href='#L1231' id='L1231'>1231</a><a href='#L1232' id='L1232'>1232</a><a href='#L1233' id='L1233'>1233</a><a href='#L1234' id='L1234'>1234</a><a href='#L1235' id='L1235'>1235</a><a href='#L1236' id='L1236'>1236</a><a href='#L1237' id='L1237'>1237</a><a href='#L1238' id='L1238'>1238</a><a href='#L1239' id='L1239'>1239</a><a href='#L1240' id='L1240'>1240</a><a href='#L1241' id='L1241'>1241</a><a href='#L1242' id='L1242'>1242</a><a href='#L1243' id='L1243'>1243</a><a href='#L1244' id='L1244'>1244</a><a href='#L1245' id='L1245'>1245</a><a href='#L1246' id='L1246'>1246</a><a href='#L1247' id='L1247'>1247</a><a href='#L1248' id='L1248'>1248</a><a href='#L1249' id='L1249'>1249</a><a href='#L1250' id='L1250'>1250</a><a href='#L1251' id='L1251'>1251</a><a href='#L1252' id='L1252'>1252</a><a href='#L1253' id='L1253'>1253</a><a href='#L1254' id='L1254'>1254</a><a href='#L1255' id='L1255'>1255</a><a href='#L1256' id='L1256'>1256</a><a href='#L1257' id='L1257'>1257</a><a href='#L1258' id='L1258'>1258</a><a href='#L1259' id='L1259'>1259</a><a href='#L1260' id='L1260'>1260</a><a href='#L1261' id='L1261'>1261</a><a href='#L1262' id='L1262'>1262</a><a href='#L1263' id='L1263'>1263</a><a href='#L1264' id='L1264'>1264</a><a href='#L1265' id='L1265'>1265</a><a href='#L1266' id='L1266'>1266</a><a href='#L1267' id='L1267'>1267</a><a href='#L1268' id='L1268'>1268</a><a href='#L1269' id='L1269'>1269</a><a href='#L1270' id='L1270'>1270</a><a href='#L1271' id='L1271'>1271</a><a href='#L1272' id='L1272'>1272</a><a href='#L1273' id='L1273'>1273</a><a href='#L1274' id='L1274'>1274</a><a href='#L1275' id='L1275'>1275</a><a href='#L1276' id='L1276'>1276</a><a href='#L1277' id='L1277'>1277</a><a href='#L1278' id='L1278'>1278</a><a href='#L1279' id='L1279'>1279</a><a href='#L1280' id='L1280'>1280</a><a href='#L1281' id='L1281'>1281</a><a href='#L1282' id='L1282'>1282</a><a href='#L1283' id='L1283'>1283</a><a href='#L1284' id='L1284'>1284</a><a href='#L1285' id='L1285'>1285</a><a href='#L1286' id='L1286'>1286</a><a href='#L1287' id='L1287'>1287</a><a href='#L1288' id='L1288'>1288</a><a href='#L1289' id='L1289'>1289</a><a href='#L1290' id='L1290'>1290</a><a href='#L1291' id='L1291'>1291</a><a href='#L1292' id='L1292'>1292</a><a href='#L1293' id='L1293'>1293</a><a href='#L1294' id='L1294'>1294</a><a href='#L1295' id='L1295'>1295</a><a href='#L1296' id='L1296'>1296</a><a href='#L1297' id='L1297'>1297</a><a href='#L1298' id='L1298'>1298</a><a href='#L1299' id='L1299'>1299</a><a href='#L1300' id='L1300'>1300</a><a href='#L1301' id='L1301'>1301</a><a href='#L1302' id='L1302'>1302</a><a href='#L1303' id='L1303'>1303</a><a href='#L1304' id='L1304'>1304</a><a href='#L1305' id='L1305'>1305</a><a href='#L1306' id='L1306'>1306</a><a href='#L1307' id='L1307'>1307</a><a href='#L1308' id='L1308'>1308</a><a href='#L1309' id='L1309'>1309</a><a href='#L1310' id='L1310'>1310</a><a href='#L1311' id='L1311'>1311</a><a href='#L1312' id='L1312'>1312</a><a href='#L1313' id='L1313'>1313</a><a href='#L1314' id='L1314'>1314</a><a href='#L1315' id='L1315'>1315</a><a href='#L1316' id='L1316'>1316</a><a href='#L1317' id='L1317'>1317</a><a href='#L1318' id='L1318'>1318</a><a href='#L1319' id='L1319'>1319</a><a href='#L1320' id='L1320'>1320</a><a href='#L1321' id='L1321'>1321</a><a href='#L1322' id='L1322'>1322</a><a href='#L1323' id='L1323'>1323</a><a href='#L1324' id='L1324'>1324</a><a href='#L1325' id='L1325'>1325</a><a href='#L1326' id='L1326'>1326</a><a href='#L1327' id='L1327'>1327</a><a href='#L1328' id='L1328'>1328</a><a href='#L1329' id='L1329'>1329</a><a href='#L1330' id='L1330'>1330</a><a href='#L1331' id='L1331'>1331</a><a href='#L1332' id='L1332'>1332</a><a href='#L1333' id='L1333'>1333</a><a href='#L1334' id='L1334'>1334</a><a href='#L1335' id='L1335'>1335</a><a href='#L1336' id='L1336'>1336</a><a href='#L1337' id='L1337'>1337</a><a href='#L1338' id='L1338'>1338</a><a href='#L1339' id='L1339'>1339</a><a href='#L1340' id='L1340'>1340</a><a href='#L1341' id='L1341'>1341</a><a href='#L1342' id='L1342'>1342</a><a href='#L1343' id='L1343'>1343</a><a href='#L1344' id='L1344'>1344</a><a href='#L1345' id='L1345'>1345</a><a href='#L1346' id='L1346'>1346</a><a href='#L1347' id='L1347'>1347</a><a href='#L1348' id='L1348'>1348</a><a href='#L1349' id='L1349'>1349</a><a href='#L1350' id='L1350'>1350</a><a href='#L1351' id='L1351'>1351</a><a href='#L1352' id='L1352'>1352</a><a href='#L1353' id='L1353'>1353</a><a href='#L1354' id='L1354'>1354</a><a href='#L1355' id='L1355'>1355</a><a href='#L1356' id='L1356'>1356</a><a href='#L1357' id='L1357'>1357</a><a href='#L1358' id='L1358'>1358</a><a href='#L1359' id='L1359'>1359</a><a href='#L1360' id='L1360'>1360</a><a href='#L1361' id='L1361'>1361</a><a href='#L1362' id='L1362'>1362</a><a href='#L1363' id='L1363'>1363</a><a href='#L1364' id='L1364'>1364</a><a href='#L1365' id='L1365'>1365</a><a href='#L1366' id='L1366'>1366</a><a href='#L1367' id='L1367'>1367</a><a href='#L1368' id='L1368'>1368</a><a href='#L1369' id='L1369'>1369</a><a href='#L1370' id='L1370'>1370</a><a href='#L1371' id='L1371'>1371</a><a href='#L1372' id='L1372'>1372</a><a href='#L1373' id='L1373'>1373</a><a href='#L1374' id='L1374'>1374</a><a href='#L1375' id='L1375'>1375</a><a href='#L1376' id='L1376'>1376</a><a href='#L1377' id='L1377'>1377</a><a href='#L1378' id='L1378'>1378</a><a href='#L1379' id='L1379'>1379</a><a href='#L1380' id='L1380'>1380</a><a href='#L1381' id='L1381'>1381</a><a href='#L1382' id='L1382'>1382</a><a href='#L1383' id='L1383'>1383</a><a href='#L1384' id='L1384'>1384</a><a href='#L1385' id='L1385'>1385</a><a href='#L1386' id='L1386'>1386</a><a href='#L1387' id='L1387'>1387</a><a href='#L1388' id='L1388'>1388</a><a href='#L1389' id='L1389'>1389</a><a href='#L1390' id='L1390'>1390</a><a href='#L1391' id='L1391'>1391</a><a href='#L1392' id='L1392'>1392</a><a href='#L1393' id='L1393'>1393</a><a href='#L1394' id='L1394'>1394</a><a href='#L1395' id='L1395'>1395</a><a href='#L1396' id='L1396'>1396</a><a href='#L1397' id='L1397'>1397</a><a href='#L1398' id='L1398'>1398</a><a href='#L1399' id='L1399'>1399</a><a href='#L1400' id='L1400'>1400</a><a href='#L1401' id='L1401'>1401</a><a href='#L1402' id='L1402'>1402</a><a href='#L1403' id='L1403'>1403</a><a href='#L1404' id='L1404'>1404</a><a href='#L1405' id='L1405'>1405</a><a href='#L1406' id='L1406'>1406</a><a href='#L1407' id='L1407'>1407</a><a href='#L1408' id='L1408'>1408</a><a href='#L1409' id='L1409'>1409</a><a href='#L1410' id='L1410'>1410</a><a href='#L1411' id='L1411'>1411</a><a href='#L1412' id='L1412'>1412</a><a href='#L1413' id='L1413'>1413</a><a href='#L1414' id='L1414'>1414</a><a href='#L1415' id='L1415'>1415</a><a href='#L1416' id='L1416'>1416</a><a href='#L1417' id='L1417'>1417</a><a href='#L1418' id='L1418'>1418</a><a href='#L1419' id='L1419'>1419</a><a href='#L1420' id='L1420'>1420</a><a href='#L1421' id='L1421'>1421</a><a href='#L1422' id='L1422'>1422</a><a href='#L1423' id='L1423'>1423</a><a href='#L1424' id='L1424'>1424</a><a href='#L1425' id='L1425'>1425</a><a href='#L1426' id='L1426'>1426</a><a href='#L1427' id='L1427'>1427</a><a href='#L1428' id='L1428'>1428</a><a href='#L1429' id='L1429'>1429</a><a href='#L1430' id='L1430'>1430</a><a href='#L1431' id='L1431'>1431</a><a href='#L1432' id='L1432'>1432</a><a href='#L1433' id='L1433'>1433</a><a href='#L1434' id='L1434'>1434</a><a href='#L1435' id='L1435'>1435</a><a href='#L1436' id='L1436'>1436</a><a href='#L1437' id='L1437'>1437</a><a href='#L1438' id='L1438'>1438</a><a href='#L1439' id='L1439'>1439</a><a href='#L1440' id='L1440'>1440</a><a href='#L1441' id='L1441'>1441</a><a href='#L1442' id='L1442'>1442</a><a href='#L1443' id='L1443'>1443</a><a href='#L1444' id='L1444'>1444</a><a href='#L1445' id='L1445'>1445</a><a href='#L1446' id='L1446'>1446</a><a href='#L1447' id='L1447'>1447</a><a href='#L1448' id='L1448'>1448</a><a href='#L1449' id='L1449'>1449</a><a href='#L1450' id='L1450'>1450</a><a href='#L1451' id='L1451'>1451</a><a href='#L1452' id='L1452'>1452</a><a href='#L1453' id='L1453'>1453</a><a href='#L1454' id='L1454'>1454</a><a href='#L1455' id='L1455'>1455</a><a href='#L1456' id='L1456'>1456</a><a href='#L1457' id='L1457'>1457</a><a href='#L1458' id='L1458'>1458</a><a href='#L1459' id='L1459'>1459</a><a href='#L1460' id='L1460'>1460</a><a href='#L1461' id='L1461'>1461</a><a href='#L1462' id='L1462'>1462</a><a href='#L1463' id='L1463'>1463</a><a href='#L1464' id='L1464'>1464</a><a href='#L1465' id='L1465'>1465</a><a href='#L1466' id='L1466'>1466</a><a href='#L1467' id='L1467'>1467</a><a href='#L1468' id='L1468'>1468</a><a href='#L1469' id='L1469'>1469</a><a href='#L1470' id='L1470'>1470</a><a href='#L1471' id='L1471'>1471</a><a href='#L1472' id='L1472'>1472</a><a href='#L1473' id='L1473'>1473</a><a href='#L1474' id='L1474'>1474</a><a href='#L1475' id='L1475'>1475</a><a href='#L1476' id='L1476'>1476</a><a href='#L1477' id='L1477'>1477</a><a href='#L1478' id='L1478'>1478</a><a href='#L1479' id='L1479'>1479</a><a href='#L1480' id='L1480'>1480</a><a href='#L1481' id='L1481'>1481</a><a href='#L1482' id='L1482'>1482</a><a href='#L1483' id='L1483'>1483</a><a href='#L1484' id='L1484'>1484</a><a href='#L1485' id='L1485'>1485</a><a href='#L1486' id='L1486'>1486</a><a href='#L1487' id='L1487'>1487</a><a href='#L1488' id='L1488'>1488</a><a href='#L1489' id='L1489'>1489</a><a href='#L1490' id='L1490'>1490</a><a href='#L1491' id='L1491'>1491</a><a href='#L1492' id='L1492'>1492</a><a href='#L1493' id='L1493'>1493</a><a href='#L1494' id='L1494'>1494</a><a href='#L1495' id='L1495'>1495</a><a href='#L1496' id='L1496'>1496</a><a href='#L1497' id='L1497'>1497</a><a href='#L1498' id='L1498'>1498</a><a href='#L1499' id='L1499'>1499</a><a href='#L1500' id='L1500'>1500</a><a href='#L1501' id='L1501'>1501</a><a href='#L1502' id='L1502'>1502</a><a href='#L1503' id='L1503'>1503</a><a href='#L1504' id='L1504'>1504</a><a href='#L1505' id='L1505'>1505</a><a href='#L1506' id='L1506'>1506</a><a href='#L1507' id='L1507'>1507</a><a href='#L1508' id='L1508'>1508</a><a href='#L1509' id='L1509'>1509</a><a href='#L1510' id='L1510'>1510</a><a href='#L1511' id='L1511'>1511</a><a href='#L1512' id='L1512'>1512</a><a href='#L1513' id='L1513'>1513</a><a href='#L1514' id='L1514'>1514</a><a href='#L1515' id='L1515'>1515</a><a href='#L1516' id='L1516'>1516</a><a href='#L1517' id='L1517'>1517</a><a href='#L1518' id='L1518'>1518</a><a href='#L1519' id='L1519'>1519</a><a href='#L1520' id='L1520'>1520</a><a href='#L1521' id='L1521'>1521</a><a href='#L1522' id='L1522'>1522</a><a href='#L1523' id='L1523'>1523</a><a href='#L1524' id='L1524'>1524</a><a href='#L1525' id='L1525'>1525</a><a href='#L1526' id='L1526'>1526</a><a href='#L1527' id='L1527'>1527</a><a href='#L1528' id='L1528'>1528</a><a href='#L1529' id='L1529'>1529</a><a href='#L1530' id='L1530'>1530</a><a href='#L1531' id='L1531'>1531</a><a href='#L1532' id='L1532'>1532</a><a href='#L1533' id='L1533'>1533</a><a href='#L1534' id='L1534'>1534</a><a href='#L1535' id='L1535'>1535</a><a href='#L1536' id='L1536'>1536</a><a href='#L1537' id='L1537'>1537</a><a href='#L1538' id='L1538'>1538</a><a href='#L1539' id='L1539'>1539</a><a href='#L1540' id='L1540'>1540</a><a href='#L1541' id='L1541'>1541</a><a href='#L1542' id='L1542'>1542</a><a href='#L1543' id='L1543'>1543</a><a href='#L1544' id='L1544'>1544</a><a href='#L1545' id='L1545'>1545</a><a href='#L1546' id='L1546'>1546</a><a href='#L1547' id='L1547'>1547</a><a href='#L1548' id='L1548'>1548</a><a href='#L1549' id='L1549'>1549</a><a href='#L1550' id='L1550'>1550</a><a href='#L1551' id='L1551'>1551</a><a href='#L1552' id='L1552'>1552</a><a href='#L1553' id='L1553'>1553</a><a href='#L1554' id='L1554'>1554</a><a href='#L1555' id='L1555'>1555</a><a href='#L1556' id='L1556'>1556</a><a href='#L1557' id='L1557'>1557</a><a href='#L1558' id='L1558'>1558</a><a href='#L1559' id='L1559'>1559</a><a href='#L1560' id='L1560'>1560</a><a href='#L1561' id='L1561'>1561</a><a href='#L1562' id='L1562'>1562</a><a href='#L1563' id='L1563'>1563</a><a href='#L1564' id='L1564'>1564</a><a href='#L1565' id='L1565'>1565</a><a href='#L1566' id='L1566'>1566</a><a href='#L1567' id='L1567'>1567</a><a href='#L1568' id='L1568'>1568</a><a href='#L1569' id='L1569'>1569</a><a href='#L1570' id='L1570'>1570</a><a href='#L1571' id='L1571'>1571</a><a href='#L1572' id='L1572'>1572</a><a href='#L1573' id='L1573'>1573</a><a href='#L1574' id='L1574'>1574</a><a href='#L1575' id='L1575'>1575</a><a href='#L1576' id='L1576'>1576</a><a href='#L1577' id='L1577'>1577</a><a href='#L1578' id='L1578'>1578</a><a href='#L1579' id='L1579'>1579</a><a href='#L1580' id='L1580'>1580</a><a href='#L1581' id='L1581'>1581</a><a href='#L1582' id='L1582'>1582</a><a href='#L1583' id='L1583'>1583</a><a href='#L1584' id='L1584'>1584</a><a href='#L1585' id='L1585'>1585</a><a href='#L1586' id='L1586'>1586</a><a href='#L1587' id='L1587'>1587</a><a href='#L1588' id='L1588'>1588</a><a href='#L1589' id='L1589'>1589</a><a href='#L1590' id='L1590'>1590</a><a href='#L1591' id='L1591'>1591</a><a href='#L1592' id='L1592'>1592</a><a href='#L1593' id='L1593'>1593</a><a href='#L1594' id='L1594'>1594</a><a href='#L1595' id='L1595'>1595</a><a href='#L1596' id='L1596'>1596</a><a href='#L1597' id='L1597'>1597</a><a href='#L1598' id='L1598'>1598</a><a href='#L1599' id='L1599'>1599</a><a href='#L1600' id='L1600'>1600</a><a href='#L1601' id='L1601'>1601</a><a href='#L1602' id='L1602'>1602</a><a href='#L1603' id='L1603'>1603</a><a href='#L1604' id='L1604'>1604</a><a href='#L1605' id='L1605'>1605</a><a href='#L1606' id='L1606'>1606</a><a href='#L1607' id='L1607'>1607</a><a href='#L1608' id='L1608'>1608</a><a href='#L1609' id='L1609'>1609</a><a href='#L1610' id='L1610'>1610</a><a href='#L1611' id='L1611'>1611</a><a href='#L1612' id='L1612'>1612</a><a href='#L1613' id='L1613'>1613</a><a href='#L1614' id='L1614'>1614</a><a href='#L1615' id='L1615'>1615</a><a href='#L1616' id='L1616'>1616</a><a href='#L1617' id='L1617'>1617</a><a href='#L1618' id='L1618'>1618</a><a href='#L1619' id='L1619'>1619</a><a href='#L1620' id='L1620'>1620</a><a href='#L1621' id='L1621'>1621</a><a href='#L1622' id='L1622'>1622</a><a href='#L1623' id='L1623'>1623</a><a href='#L1624' id='L1624'>1624</a><a href='#L1625' id='L1625'>1625</a><a href='#L1626' id='L1626'>1626</a><a href='#L1627' id='L1627'>1627</a><a href='#L1628' id='L1628'>1628</a><a href='#L1629' id='L1629'>1629</a><a href='#L1630' id='L1630'>1630</a><a href='#L1631' id='L1631'>1631</a><a href='#L1632' id='L1632'>1632</a><a href='#L1633' id='L1633'>1633</a><a href='#L1634' id='L1634'>1634</a><a href='#L1635' id='L1635'>1635</a><a href='#L1636' id='L1636'>1636</a><a href='#L1637' id='L1637'>1637</a><a href='#L1638' id='L1638'>1638</a><a href='#L1639' id='L1639'>1639</a><a href='#L1640' id='L1640'>1640</a><a href='#L1641' id='L1641'>1641</a><a href='#L1642' id='L1642'>1642</a><a href='#L1643' id='L1643'>1643</a><a href='#L1644' id='L1644'>1644</a><a href='#L1645' id='L1645'>1645</a><a href='#L1646' id='L1646'>1646</a><a href='#L1647' id='L1647'>1647</a><a href='#L1648' id='L1648'>1648</a><a href='#L1649' id='L1649'>1649</a><a href='#L1650' id='L1650'>1650</a><a href='#L1651' id='L1651'>1651</a><a href='#L1652' id='L1652'>1652</a><a href='#L1653' id='L1653'>1653</a><a href='#L1654' id='L1654'>1654</a><a href='#L1655' id='L1655'>1655</a><a href='#L1656' id='L1656'>1656</a><a href='#L1657' id='L1657'>1657</a><a href='#L1658' id='L1658'>1658</a><a href='#L1659' id='L1659'>1659</a><a href='#L1660' id='L1660'>1660</a><a href='#L1661' id='L1661'>1661</a><a href='#L1662' id='L1662'>1662</a><a href='#L1663' id='L1663'>1663</a><a href='#L1664' id='L1664'>1664</a><a href='#L1665' id='L1665'>1665</a><a href='#L1666' id='L1666'>1666</a><a href='#L1667' id='L1667'>1667</a><a href='#L1668' id='L1668'>1668</a><a href='#L1669' id='L1669'>1669</a><a href='#L1670' id='L1670'>1670</a><a href='#L1671' id='L1671'>1671</a><a href='#L1672' id='L1672'>1672</a><a href='#L1673' id='L1673'>1673</a><a href='#L1674' id='L1674'>1674</a><a href='#L1675' id='L1675'>1675</a><a href='#L1676' id='L1676'>1676</a><a href='#L1677' id='L1677'>1677</a><a href='#L1678' id='L1678'>1678</a><a href='#L1679' id='L1679'>1679</a><a href='#L1680' id='L1680'>1680</a><a href='#L1681' id='L1681'>1681</a><a href='#L1682' id='L1682'>1682</a><a href='#L1683' id='L1683'>1683</a><a href='#L1684' id='L1684'>1684</a><a href='#L1685' id='L1685'>1685</a><a href='#L1686' id='L1686'>1686</a><a href='#L1687' id='L1687'>1687</a><a href='#L1688' id='L1688'>1688</a><a href='#L1689' id='L1689'>1689</a><a href='#L1690' id='L1690'>1690</a><a href='#L1691' id='L1691'>1691</a><a href='#L1692' id='L1692'>1692</a><a href='#L1693' id='L1693'>1693</a><a href='#L1694' id='L1694'>1694</a><a href='#L1695' id='L1695'>1695</a><a href='#L1696' id='L1696'>1696</a><a href='#L1697' id='L1697'>1697</a><a href='#L1698' id='L1698'>1698</a><a href='#L1699' id='L1699'>1699</a><a href='#L1700' id='L1700'>1700</a><a href='#L1701' id='L1701'>1701</a><a href='#L1702' id='L1702'>1702</a><a href='#L1703' id='L1703'>1703</a><a href='#L1704' id='L1704'>1704</a><a href='#L1705' id='L1705'>1705</a><a href='#L1706' id='L1706'>1706</a><a href='#L1707' id='L1707'>1707</a><a href='#L1708' id='L1708'>1708</a><a href='#L1709' id='L1709'>1709</a><a href='#L1710' id='L1710'>1710</a><a href='#L1711' id='L1711'>1711</a><a href='#L1712' id='L1712'>1712</a><a href='#L1713' id='L1713'>1713</a><a href='#L1714' id='L1714'>1714</a><a href='#L1715' id='L1715'>1715</a><a href='#L1716' id='L1716'>1716</a><a href='#L1717' id='L1717'>1717</a><a href='#L1718' id='L1718'>1718</a><a href='#L1719' id='L1719'>1719</a><a href='#L1720' id='L1720'>1720</a><a href='#L1721' id='L1721'>1721</a><a href='#L1722' id='L1722'>1722</a><a href='#L1723' id='L1723'>1723</a><a href='#L1724' id='L1724'>1724</a><a href='#L1725' id='L1725'>1725</a><a href='#L1726' id='L1726'>1726</a><a href='#L1727' id='L1727'>1727</a><a href='#L1728' id='L1728'>1728</a><a href='#L1729' id='L1729'>1729</a><a href='#L1730' id='L1730'>1730</a><a href='#L1731' id='L1731'>1731</a><a href='#L1732' id='L1732'>1732</a><a href='#L1733' id='L1733'>1733</a><a href='#L1734' id='L1734'>1734</a><a href='#L1735' id='L1735'>1735</a><a href='#L1736' id='L1736'>1736</a><a href='#L1737' id='L1737'>1737</a><a href='#L1738' id='L1738'>1738</a><a href='#L1739' id='L1739'>1739</a><a href='#L1740' id='L1740'>1740</a><a href='#L1741' id='L1741'>1741</a><a href='#L1742' id='L1742'>1742</a><a href='#L1743' id='L1743'>1743</a><a href='#L1744' id='L1744'>1744</a><a href='#L1745' id='L1745'>1745</a><a href='#L1746' id='L1746'>1746</a><a href='#L1747' id='L1747'>1747</a><a href='#L1748' id='L1748'>1748</a><a href='#L1749' id='L1749'>1749</a><a href='#L1750' id='L1750'>1750</a><a href='#L1751' id='L1751'>1751</a><a href='#L1752' id='L1752'>1752</a><a href='#L1753' id='L1753'>1753</a><a href='#L1754' id='L1754'>1754</a><a href='#L1755' id='L1755'>1755</a><a href='#L1756' id='L1756'>1756</a><a href='#L1757' id='L1757'>1757</a><a href='#L1758' id='L1758'>1758</a><a href='#L1759' id='L1759'>1759</a><a href='#L1760' id='L1760'>1760</a><a href='#L1761' id='L1761'>1761</a><a href='#L1762' id='L1762'>1762</a><a href='#L1763' id='L1763'>1763</a><a href='#L1764' id='L1764'>1764</a><a href='#L1765' id='L1765'>1765</a><a href='#L1766' id='L1766'>1766</a><a href='#L1767' id='L1767'>1767</a><a href='#L1768' id='L1768'>1768</a><a href='#L1769' id='L1769'>1769</a><a href='#L1770' id='L1770'>1770</a><a href='#L1771' id='L1771'>1771</a><a href='#L1772' id='L1772'>1772</a><a href='#L1773' id='L1773'>1773</a><a href='#L1774' id='L1774'>1774</a><a href='#L1775' id='L1775'>1775</a><a href='#L1776' id='L1776'>1776</a><a href='#L1777' id='L1777'>1777</a><a href='#L1778' id='L1778'>1778</a><a href='#L1779' id='L1779'>1779</a><a href='#L1780' id='L1780'>1780</a><a href='#L1781' id='L1781'>1781</a><a href='#L1782' id='L1782'>1782</a><a href='#L1783' id='L1783'>1783</a><a href='#L1784' id='L1784'>1784</a><a href='#L1785' id='L1785'>1785</a><a href='#L1786' id='L1786'>1786</a><a href='#L1787' id='L1787'>1787</a><a href='#L1788' id='L1788'>1788</a><a href='#L1789' id='L1789'>1789</a><a href='#L1790' id='L1790'>1790</a><a href='#L1791' id='L1791'>1791</a><a href='#L1792' id='L1792'>1792</a><a href='#L1793' id='L1793'>1793</a><a href='#L1794' id='L1794'>1794</a><a href='#L1795' id='L1795'>1795</a><a href='#L1796' id='L1796'>1796</a><a href='#L1797' id='L1797'>1797</a><a href='#L1798' id='L1798'>1798</a><a href='#L1799' id='L1799'>1799</a><a href='#L1800' id='L1800'>1800</a><a href='#L1801' id='L1801'>1801</a><a href='#L1802' id='L1802'>1802</a><a href='#L1803' id='L1803'>1803</a><a href='#L1804' id='L1804'>1804</a><a href='#L1805' id='L1805'>1805</a><a href='#L1806' id='L1806'>1806</a><a href='#L1807' id='L1807'>1807</a><a href='#L1808' id='L1808'>1808</a><a href='#L1809' id='L1809'>1809</a><a href='#L1810' id='L1810'>1810</a><a href='#L1811' id='L1811'>1811</a><a href='#L1812' id='L1812'>1812</a><a href='#L1813' id='L1813'>1813</a><a href='#L1814' id='L1814'>1814</a><a href='#L1815' id='L1815'>1815</a><a href='#L1816' id='L1816'>1816</a><a href='#L1817' id='L1817'>1817</a><a href='#L1818' id='L1818'>1818</a><a href='#L1819' id='L1819'>1819</a><a href='#L1820' id='L1820'>1820</a><a href='#L1821' id='L1821'>1821</a><a href='#L1822' id='L1822'>1822</a><a href='#L1823' id='L1823'>1823</a><a href='#L1824' id='L1824'>1824</a><a href='#L1825' id='L1825'>1825</a><a href='#L1826' id='L1826'>1826</a><a href='#L1827' id='L1827'>1827</a><a href='#L1828' id='L1828'>1828</a><a href='#L1829' id='L1829'>1829</a><a href='#L1830' id='L1830'>1830</a><a href='#L1831' id='L1831'>1831</a><a href='#L1832' id='L1832'>1832</a><a href='#L1833' id='L1833'>1833</a><a href='#L1834' id='L1834'>1834</a><a href='#L1835' id='L1835'>1835</a><a href='#L1836' id='L1836'>1836</a><a href='#L1837' id='L1837'>1837</a><a href='#L1838' id='L1838'>1838</a><a href='#L1839' id='L1839'>1839</a><a href='#L1840' id='L1840'>1840</a><a href='#L1841' id='L1841'>1841</a><a href='#L1842' id='L1842'>1842</a><a href='#L1843' id='L1843'>1843</a><a href='#L1844' id='L1844'>1844</a><a href='#L1845' id='L1845'>1845</a><a href='#L1846' id='L1846'>1846</a><a href='#L1847' id='L1847'>1847</a><a href='#L1848' id='L1848'>1848</a><a href='#L1849' id='L1849'>1849</a><a href='#L1850' id='L1850'>1850</a><a href='#L1851' id='L1851'>1851</a><a href='#L1852' id='L1852'>1852</a><a href='#L1853' id='L1853'>1853</a><a href='#L1854' id='L1854'>1854</a><a href='#L1855' id='L1855'>1855</a><a href='#L1856' id='L1856'>1856</a><a href='#L1857' id='L1857'>1857</a><a href='#L1858' id='L1858'>1858</a><a href='#L1859' id='L1859'>1859</a><a href='#L1860' id='L1860'>1860</a><a href='#L1861' id='L1861'>1861</a><a href='#L1862' id='L1862'>1862</a><a href='#L1863' id='L1863'>1863</a><a href='#L1864' id='L1864'>1864</a><a href='#L1865' id='L1865'>1865</a><a href='#L1866' id='L1866'>1866</a><a href='#L1867' id='L1867'>1867</a><a href='#L1868' id='L1868'>1868</a><a href='#L1869' id='L1869'>1869</a><a href='#L1870' id='L1870'>1870</a><a href='#L1871' id='L1871'>1871</a><a href='#L1872' id='L1872'>1872</a><a href='#L1873' id='L1873'>1873</a><a href='#L1874' id='L1874'>1874</a><a href='#L1875' id='L1875'>1875</a><a href='#L1876' id='L1876'>1876</a><a href='#L1877' id='L1877'>1877</a><a href='#L1878' id='L1878'>1878</a><a href='#L1879' id='L1879'>1879</a><a href='#L1880' id='L1880'>1880</a><a href='#L1881' id='L1881'>1881</a><a href='#L1882' id='L1882'>1882</a><a href='#L1883' id='L1883'>1883</a><a href='#L1884' id='L1884'>1884</a><a href='#L1885' id='L1885'>1885</a><a href='#L1886' id='L1886'>1886</a><a href='#L1887' id='L1887'>1887</a><a href='#L1888' id='L1888'>1888</a><a href='#L1889' id='L1889'>1889</a><a href='#L1890' id='L1890'>1890</a><a href='#L1891' id='L1891'>1891</a><a href='#L1892' id='L1892'>1892</a><a href='#L1893' id='L1893'>1893</a><a href='#L1894' id='L1894'>1894</a><a href='#L1895' id='L1895'>1895</a><a href='#L1896' id='L1896'>1896</a><a href='#L1897' id='L1897'>1897</a><a href='#L1898' id='L1898'>1898</a><a href='#L1899' id='L1899'>1899</a><a href='#L1900' id='L1900'>1900</a><a href='#L1901' id='L1901'>1901</a><a href='#L1902' id='L1902'>1902</a><a href='#L1903' id='L1903'>1903</a><a href='#L1904' id='L1904'>1904</a><a href='#L1905' id='L1905'>1905</a><a href='#L1906' id='L1906'>1906</a><a href='#L1907' id='L1907'>1907</a><a href='#L1908' id='L1908'>1908</a><a href='#L1909' id='L1909'>1909</a><a href='#L1910' id='L1910'>1910</a><a href='#L1911' id='L1911'>1911</a><a href='#L1912' id='L1912'>1912</a><a href='#L1913' id='L1913'>1913</a><a href='#L1914' id='L1914'>1914</a><a href='#L1915' id='L1915'>1915</a><a href='#L1916' id='L1916'>1916</a><a href='#L1917' id='L1917'>1917</a><a href='#L1918' id='L1918'>1918</a><a href='#L1919' id='L1919'>1919</a><a href='#L1920' id='L1920'>1920</a><a href='#L1921' id='L1921'>1921</a><a href='#L1922' id='L1922'>1922</a><a href='#L1923' id='L1923'>1923</a><a href='#L1924' id='L1924'>1924</a><a href='#L1925' id='L1925'>1925</a><a href='#L1926' id='L1926'>1926</a><a href='#L1927' id='L1927'>1927</a><a href='#L1928' id='L1928'>1928</a><a href='#L1929' id='L1929'>1929</a><a href='#L1930' id='L1930'>1930</a><a href='#L1931' id='L1931'>1931</a><a href='#L1932' id='L1932'>1932</a><a href='#L1933' id='L1933'>1933</a><a href='#L1934' id='L1934'>1934</a><a href='#L1935' id='L1935'>1935</a><a href='#L1936' id='L1936'>1936</a><a href='#L1937' id='L1937'>1937</a><a href='#L1938' id='L1938'>1938</a><a href='#L1939' id='L1939'>1939</a><a href='#L1940' id='L1940'>1940</a><a href='#L1941' id='L1941'>1941</a><a href='#L1942' id='L1942'>1942</a><a href='#L1943' id='L1943'>1943</a><a href='#L1944' id='L1944'>1944</a><a href='#L1945' id='L1945'>1945</a><a href='#L1946' id='L1946'>1946</a><a href='#L1947' id='L1947'>1947</a><a href='#L1948' id='L1948'>1948</a><a href='#L1949' id='L1949'>1949</a><a href='#L1950' id='L1950'>1950</a><a href='#L1951' id='L1951'>1951</a><a href='#L1952' id='L1952'>1952</a><a href='#L1953' id='L1953'>1953</a><a href='#L1954' id='L1954'>1954</a><a href='#L1955' id='L1955'>1955</a><a href='#L1956' id='L1956'>1956</a><a href='#L1957' id='L1957'>1957</a><a href='#L1958' id='L1958'>1958</a><a href='#L1959' id='L1959'>1959</a><a href='#L1960' id='L1960'>1960</a><a href='#L1961' id='L1961'>1961</a><a href='#L1962' id='L1962'>1962</a><a href='#L1963' id='L1963'>1963</a><a href='#L1964' id='L1964'>1964</a><a href='#L1965' id='L1965'>1965</a><a href='#L1966' id='L1966'>1966</a><a href='#L1967' id='L1967'>1967</a><a href='#L1968' id='L1968'>1968</a><a href='#L1969' id='L1969'>1969</a><a href='#L1970' id='L1970'>1970</a><a href='#L1971' id='L1971'>1971</a><a href='#L1972' id='L1972'>1972</a><a href='#L1973' id='L1973'>1973</a><a href='#L1974' id='L1974'>1974</a><a href='#L1975' id='L1975'>1975</a><a href='#L1976' id='L1976'>1976</a><a href='#L1977' id='L1977'>1977</a><a href='#L1978' id='L1978'>1978</a><a href='#L1979' id='L1979'>1979</a><a href='#L1980' id='L1980'>1980</a><a href='#L1981' id='L1981'>1981</a><a href='#L1982' id='L1982'>1982</a><a href='#L1983' id='L1983'>1983</a><a href='#L1984' id='L1984'>1984</a><a href='#L1985' id='L1985'>1985</a><a href='#L1986' id='L1986'>1986</a><a href='#L1987' id='L1987'>1987</a><a href='#L1988' id='L1988'>1988</a><a href='#L1989' id='L1989'>1989</a><a href='#L1990' id='L1990'>1990</a><a href='#L1991' id='L1991'>1991</a><a href='#L1992' id='L1992'>1992</a><a href='#L1993' id='L1993'>1993</a><a href='#L1994' id='L1994'>1994</a><a href='#L1995' id='L1995'>1995</a><a href='#L1996' id='L1996'>1996</a><a href='#L1997' id='L1997'>1997</a><a href='#L1998' id='L1998'>1998</a><a href='#L1999' id='L1999'>1999</a><a href='#L2000' id='L2000'>2000</a><a href='#L2001' id='L2001'>2001</a><a href='#L2002' id='L2002'>2002</a><a href='#L2003' id='L2003'>2003</a><a href='#L2004' id='L2004'>2004</a><a href='#L2005' id='L2005'>2005</a><a href='#L2006' id='L2006'>2006</a><a href='#L2007' id='L2007'>2007</a><a href='#L2008' id='L2008'>2008</a><a href='#L2009' id='L2009'>2009</a><a href='#L2010' id='L2010'>2010</a><a href='#L2011' id='L2011'>2011</a><a href='#L2012' id='L2012'>2012</a><a href='#L2013' id='L2013'>2013</a><a href='#L2014' id='L2014'>2014</a><a href='#L2015' id='L2015'>2015</a><a href='#L2016' id='L2016'>2016</a><a href='#L2017' id='L2017'>2017</a><a href='#L2018' id='L2018'>2018</a><a href='#L2019' id='L2019'>2019</a><a href='#L2020' id='L2020'>2020</a><a href='#L2021' id='L2021'>2021</a><a href='#L2022' id='L2022'>2022</a><a href='#L2023' id='L2023'>2023</a><a href='#L2024' id='L2024'>2024</a><a href='#L2025' id='L2025'>2025</a><a href='#L2026' id='L2026'>2026</a><a href='#L2027' id='L2027'>2027</a><a href='#L2028' id='L2028'>2028</a><a href='#L2029' id='L2029'>2029</a><a href='#L2030' id='L2030'>2030</a><a href='#L2031' id='L2031'>2031</a><a href='#L2032' id='L2032'>2032</a><a href='#L2033' id='L2033'>2033</a><a href='#L2034' id='L2034'>2034</a><a href='#L2035' id='L2035'>2035</a><a href='#L2036' id='L2036'>2036</a><a href='#L2037' id='L2037'>2037</a><a href='#L2038' id='L2038'>2038</a><a href='#L2039' id='L2039'>2039</a><a href='#L2040' id='L2040'>2040</a><a href='#L2041' id='L2041'>2041</a><a href='#L2042' id='L2042'>2042</a><a href='#L2043' id='L2043'>2043</a><a href='#L2044' id='L2044'>2044</a><a href='#L2045' id='L2045'>2045</a><a href='#L2046' id='L2046'>2046</a><a href='#L2047' id='L2047'>2047</a><a href='#L2048' id='L2048'>2048</a><a href='#L2049' id='L2049'>2049</a><a href='#L2050' id='L2050'>2050</a><a href='#L2051' id='L2051'>2051</a><a href='#L2052' id='L2052'>2052</a><a href='#L2053' id='L2053'>2053</a><a href='#L2054' id='L2054'>2054</a><a href='#L2055' id='L2055'>2055</a><a href='#L2056' id='L2056'>2056</a><a href='#L2057' id='L2057'>2057</a><a href='#L2058' id='L2058'>2058</a><a href='#L2059' id='L2059'>2059</a><a href='#L2060' id='L2060'>2060</a><a href='#L2061' id='L2061'>2061</a><a href='#L2062' id='L2062'>2062</a><a href='#L2063' id='L2063'>2063</a><a href='#L2064' id='L2064'>2064</a><a href='#L2065' id='L2065'>2065</a><a href='#L2066' id='L2066'>2066</a><a href='#L2067' id='L2067'>2067</a><a href='#L2068' id='L2068'>2068</a><a href='#L2069' id='L2069'>2069</a><a href='#L2070' id='L2070'>2070</a><a href='#L2071' id='L2071'>2071</a><a href='#L2072' id='L2072'>2072</a><a href='#L2073' id='L2073'>2073</a><a href='#L2074' id='L2074'>2074</a><a href='#L2075' id='L2075'>2075</a><a href='#L2076' id='L2076'>2076</a><a href='#L2077' id='L2077'>2077</a><a href='#L2078' id='L2078'>2078</a><a href='#L2079' id='L2079'>2079</a><a href='#L2080' id='L2080'>2080</a><a href='#L2081' id='L2081'>2081</a><a href='#L2082' id='L2082'>2082</a><a href='#L2083' id='L2083'>2083</a><a href='#L2084' id='L2084'>2084</a><a href='#L2085' id='L2085'>2085</a><a href='#L2086' id='L2086'>2086</a><a href='#L2087' id='L2087'>2087</a><a href='#L2088' id='L2088'>2088</a><a href='#L2089' id='L2089'>2089</a><a href='#L2090' id='L2090'>2090</a><a href='#L2091' id='L2091'>2091</a><a href='#L2092' id='L2092'>2092</a><a href='#L2093' id='L2093'>2093</a><a href='#L2094' id='L2094'>2094</a><a href='#L2095' id='L2095'>2095</a><a href='#L2096' id='L2096'>2096</a><a href='#L2097' id='L2097'>2097</a><a href='#L2098' id='L2098'>2098</a><a href='#L2099' id='L2099'>2099</a><a href='#L2100' id='L2100'>2100</a><a href='#L2101' id='L2101'>2101</a><a href='#L2102' id='L2102'>2102</a><a href='#L2103' id='L2103'>2103</a><a href='#L2104' id='L2104'>2104</a><a href='#L2105' id='L2105'>2105</a><a href='#L2106' id='L2106'>2106</a><a href='#L2107' id='L2107'>2107</a><a href='#L2108' id='L2108'>2108</a><a href='#L2109' id='L2109'>2109</a><a href='#L2110' id='L2110'>2110</a><a href='#L2111' id='L2111'>2111</a><a href='#L2112' id='L2112'>2112</a><a href='#L2113' id='L2113'>2113</a><a href='#L2114' id='L2114'>2114</a><a href='#L2115' id='L2115'>2115</a><a href='#L2116' id='L2116'>2116</a><a href='#L2117' id='L2117'>2117</a><a href='#L2118' id='L2118'>2118</a><a href='#L2119' id='L2119'>2119</a><a href='#L2120' id='L2120'>2120</a><a href='#L2121' id='L2121'>2121</a><a href='#L2122' id='L2122'>2122</a><a href='#L2123' id='L2123'>2123</a><a href='#L2124' id='L2124'>2124</a><a href='#L2125' id='L2125'>2125</a><a href='#L2126' id='L2126'>2126</a><a href='#L2127' id='L2127'>2127</a><a href='#L2128' id='L2128'>2128</a><a href='#L2129' id='L2129'>2129</a><a href='#L2130' id='L2130'>2130</a><a href='#L2131' id='L2131'>2131</a><a href='#L2132' id='L2132'>2132</a><a href='#L2133' id='L2133'>2133</a><a href='#L2134' id='L2134'>2134</a><a href='#L2135' id='L2135'>2135</a><a href='#L2136' id='L2136'>2136</a><a href='#L2137' id='L2137'>2137</a><a href='#L2138' id='L2138'>2138</a><a href='#L2139' id='L2139'>2139</a><a href='#L2140' id='L2140'>2140</a><a href='#L2141' id='L2141'>2141</a><a href='#L2142' id='L2142'>2142</a><a href='#L2143' id='L2143'>2143</a><a href='#L2144' id='L2144'>2144</a><a href='#L2145' id='L2145'>2145</a><a href='#L2146' id='L2146'>2146</a><a href='#L2147' id='L2147'>2147</a><a href='#L2148' id='L2148'>2148</a><a href='#L2149' id='L2149'>2149</a><a href='#L2150' id='L2150'>2150</a><a href='#L2151' id='L2151'>2151</a><a href='#L2152' id='L2152'>2152</a><a href='#L2153' id='L2153'>2153</a><a href='#L2154' id='L2154'>2154</a><a href='#L2155' id='L2155'>2155</a><a href='#L2156' id='L2156'>2156</a><a href='#L2157' id='L2157'>2157</a><a href='#L2158' id='L2158'>2158</a><a href='#L2159' id='L2159'>2159</a><a href='#L2160' id='L2160'>2160</a><a href='#L2161' id='L2161'>2161</a><a href='#L2162' id='L2162'>2162</a><a href='#L2163' id='L2163'>2163</a><a href='#L2164' id='L2164'>2164</a><a href='#L2165' id='L2165'>2165</a><a href='#L2166' id='L2166'>2166</a><a href='#L2167' id='L2167'>2167</a><a href='#L2168' id='L2168'>2168</a><a href='#L2169' id='L2169'>2169</a><a href='#L2170' id='L2170'>2170</a><a href='#L2171' id='L2171'>2171</a><a href='#L2172' id='L2172'>2172</a><a href='#L2173' id='L2173'>2173</a><a href='#L2174' id='L2174'>2174</a><a href='#L2175' id='L2175'>2175</a><a href='#L2176' id='L2176'>2176</a><a href='#L2177' id='L2177'>2177</a><a href='#L2178' id='L2178'>2178</a><a href='#L2179' id='L2179'>2179</a><a href='#L2180' id='L2180'>2180</a><a href='#L2181' id='L2181'>2181</a><a href='#L2182' id='L2182'>2182</a><a href='#L2183' id='L2183'>2183</a><a href='#L2184' id='L2184'>2184</a><a href='#L2185' id='L2185'>2185</a><a href='#L2186' id='L2186'>2186</a><a href='#L2187' id='L2187'>2187</a><a href='#L2188' id='L2188'>2188</a><a href='#L2189' id='L2189'>2189</a><a href='#L2190' id='L2190'>2190</a><a href='#L2191' id='L2191'>2191</a><a href='#L2192' id='L2192'>2192</a><a href='#L2193' id='L2193'>2193</a><a href='#L2194' id='L2194'>2194</a><a href='#L2195' id='L2195'>2195</a><a href='#L2196' id='L2196'>2196</a><a href='#L2197' id='L2197'>2197</a><a href='#L2198' id='L2198'>2198</a><a href='#L2199' id='L2199'>2199</a><a href='#L2200' id='L2200'>2200</a><a href='#L2201' id='L2201'>2201</a><a href='#L2202' id='L2202'>2202</a><a href='#L2203' id='L2203'>2203</a><a href='#L2204' id='L2204'>2204</a><a href='#L2205' id='L2205'>2205</a><a href='#L2206' id='L2206'>2206</a><a href='#L2207' id='L2207'>2207</a><a href='#L2208' id='L2208'>2208</a><a href='#L2209' id='L2209'>2209</a><a href='#L2210' id='L2210'>2210</a><a href='#L2211' id='L2211'>2211</a><a href='#L2212' id='L2212'>2212</a><a href='#L2213' id='L2213'>2213</a><a href='#L2214' id='L2214'>2214</a><a href='#L2215' id='L2215'>2215</a><a href='#L2216' id='L2216'>2216</a><a href='#L2217' id='L2217'>2217</a><a href='#L2218' id='L2218'>2218</a><a href='#L2219' id='L2219'>2219</a><a href='#L2220' id='L2220'>2220</a><a href='#L2221' id='L2221'>2221</a><a href='#L2222' id='L2222'>2222</a><a href='#L2223' id='L2223'>2223</a><a href='#L2224' id='L2224'>2224</a><a href='#L2225' id='L2225'>2225</a><a href='#L2226' id='L2226'>2226</a><a href='#L2227' id='L2227'>2227</a><a href='#L2228' id='L2228'>2228</a><a href='#L2229' id='L2229'>2229</a><a href='#L2230' id='L2230'>2230</a><a href='#L2231' id='L2231'>2231</a><a href='#L2232' id='L2232'>2232</a><a href='#L2233' id='L2233'>2233</a><a href='#L2234' id='L2234'>2234</a><a href='#L2235' id='L2235'>2235</a><a href='#L2236' id='L2236'>2236</a><a href='#L2237' id='L2237'>2237</a><a href='#L2238' id='L2238'>2238</a><a href='#L2239' id='L2239'>2239</a><a href='#L2240' id='L2240'>2240</a><a href='#L2241' id='L2241'>2241</a><a href='#L2242' id='L2242'>2242</a><a href='#L2243' id='L2243'>2243</a><a href='#L2244' id='L2244'>2244</a><a href='#L2245' id='L2245'>2245</a><a href='#L2246' id='L2246'>2246</a><a href='#L2247' id='L2247'>2247</a><a href='#L2248' id='L2248'>2248</a><a href='#L2249' id='L2249'>2249</a><a href='#L2250' id='L2250'>2250</a><a href='#L2251' id='L2251'>2251</a><a href='#L2252' id='L2252'>2252</a><a href='#L2253' id='L2253'>2253</a><a href='#L2254' id='L2254'>2254</a><a href='#L2255' id='L2255'>2255</a><a href='#L2256' id='L2256'>2256</a><a href='#L2257' id='L2257'>2257</a><a href='#L2258' id='L2258'>2258</a><a href='#L2259' id='L2259'>2259</a><a href='#L2260' id='L2260'>2260</a><a href='#L2261' id='L2261'>2261</a><a href='#L2262' id='L2262'>2262</a><a href='#L2263' id='L2263'>2263</a><a href='#L2264' id='L2264'>2264</a><a href='#L2265' id='L2265'>2265</a><a href='#L2266' id='L2266'>2266</a><a href='#L2267' id='L2267'>2267</a><a href='#L2268' id='L2268'>2268</a><a href='#L2269' id='L2269'>2269</a><a href='#L2270' id='L2270'>2270</a><a href='#L2271' id='L2271'>2271</a><a href='#L2272' id='L2272'>2272</a><a href='#L2273' id='L2273'>2273</a><a href='#L2274' id='L2274'>2274</a><a href='#L2275' id='L2275'>2275</a><a href='#L2276' id='L2276'>2276</a><a href='#L2277' id='L2277'>2277</a><a href='#L2278' id='L2278'>2278</a><a href='#L2279' id='L2279'>2279</a><a href='#L2280' id='L2280'>2280</a><a href='#L2281' id='L2281'>2281</a><a href='#L2282' id='L2282'>2282</a><a href='#L2283' id='L2283'>2283</a><a href='#L2284' id='L2284'>2284</a><a href='#L2285' id='L2285'>2285</a><a href='#L2286' id='L2286'>2286</a><a href='#L2287' id='L2287'>2287</a><a href='#L2288' id='L2288'>2288</a><a href='#L2289' id='L2289'>2289</a><a href='#L2290' id='L2290'>2290</a><a href='#L2291' id='L2291'>2291</a><a href='#L2292' id='L2292'>2292</a><a href='#L2293' id='L2293'>2293</a><a href='#L2294' id='L2294'>2294</a><a href='#L2295' id='L2295'>2295</a><a href='#L2296' id='L2296'>2296</a><a href='#L2297' id='L2297'>2297</a><a href='#L2298' id='L2298'>2298</a><a href='#L2299' id='L2299'>2299</a><a href='#L2300' id='L2300'>2300</a><a href='#L2301' id='L2301'>2301</a><a href='#L2302' id='L2302'>2302</a><a href='#L2303' id='L2303'>2303</a><a href='#L2304' id='L2304'>2304</a><a href='#L2305' id='L2305'>2305</a><a href='#L2306' id='L2306'>2306</a><a href='#L2307' id='L2307'>2307</a><a href='#L2308' id='L2308'>2308</a><a href='#L2309' id='L2309'>2309</a><a href='#L2310' id='L2310'>2310</a><a href='#L2311' id='L2311'>2311</a><a href='#L2312' id='L2312'>2312</a><a href='#L2313' id='L2313'>2313</a><a href='#L2314' id='L2314'>2314</a><a href='#L2315' id='L2315'>2315</a><a href='#L2316' id='L2316'>2316</a><a href='#L2317' id='L2317'>2317</a><a href='#L2318' id='L2318'>2318</a><a href='#L2319' id='L2319'>2319</a><a href='#L2320' id='L2320'>2320</a><a href='#L2321' id='L2321'>2321</a><a href='#L2322' id='L2322'>2322</a><a href='#L2323' id='L2323'>2323</a><a href='#L2324' id='L2324'>2324</a><a href='#L2325' id='L2325'>2325</a><a href='#L2326' id='L2326'>2326</a><a href='#L2327' id='L2327'>2327</a><a href='#L2328' id='L2328'>2328</a><a href='#L2329' id='L2329'>2329</a><a href='#L2330' id='L2330'>2330</a><a href='#L2331' id='L2331'>2331</a><a href='#L2332' id='L2332'>2332</a><a href='#L2333' id='L2333'>2333</a><a href='#L2334' id='L2334'>2334</a><a href='#L2335' id='L2335'>2335</a><a href='#L2336' id='L2336'>2336</a><a href='#L2337' id='L2337'>2337</a><a href='#L2338' id='L2338'>2338</a><a href='#L2339' id='L2339'>2339</a><a href='#L2340' id='L2340'>2340</a><a href='#L2341' id='L2341'>2341</a><a href='#L2342' id='L2342'>2342</a><a href='#L2343' id='L2343'>2343</a><a href='#L2344' id='L2344'>2344</a><a href='#L2345' id='L2345'>2345</a><a href='#L2346' id='L2346'>2346</a><a href='#L2347' id='L2347'>2347</a><a href='#L2348' id='L2348'>2348</a><a href='#L2349' id='L2349'>2349</a><a href='#L2350' id='L2350'>2350</a><a href='#L2351' id='L2351'>2351</a><a href='#L2352' id='L2352'>2352</a><a href='#L2353' id='L2353'>2353</a><a href='#L2354' id='L2354'>2354</a><a href='#L2355' id='L2355'>2355</a><a href='#L2356' id='L2356'>2356</a><a href='#L2357' id='L2357'>2357</a><a href='#L2358' id='L2358'>2358</a><a href='#L2359' id='L2359'>2359</a><a href='#L2360' id='L2360'>2360</a><a href='#L2361' id='L2361'>2361</a><a href='#L2362' id='L2362'>2362</a><a href='#L2363' id='L2363'>2363</a><a href='#L2364' id='L2364'>2364</a><a href='#L2365' id='L2365'>2365</a><a href='#L2366' id='L2366'>2366</a><a href='#L2367' id='L2367'>2367</a><a href='#L2368' id='L2368'>2368</a><a href='#L2369' id='L2369'>2369</a><a href='#L2370' id='L2370'>2370</a><a href='#L2371' id='L2371'>2371</a><a href='#L2372' id='L2372'>2372</a><a href='#L2373' id='L2373'>2373</a><a href='#L2374' id='L2374'>2374</a><a href='#L2375' id='L2375'>2375</a><a href='#L2376' id='L2376'>2376</a><a href='#L2377' id='L2377'>2377</a><a href='#L2378' id='L2378'>2378</a><a href='#L2379' id='L2379'>2379</a><a href='#L2380' id='L2380'>2380</a><a href='#L2381' id='L2381'>2381</a><a href='#L2382' id='L2382'>2382</a><a href='#L2383' id='L2383'>2383</a><a href='#L2384' id='L2384'>2384</a><a href='#L2385' id='L2385'>2385</a><a href='#L2386' id='L2386'>2386</a><a href='#L2387' id='L2387'>2387</a><a href='#L2388' id='L2388'>2388</a><a href='#L2389' id='L2389'>2389</a><a href='#L2390' id='L2390'>2390</a><a href='#L2391' id='L2391'>2391</a><a href='#L2392' id='L2392'>2392</a><a href='#L2393' id='L2393'>2393</a><a href='#L2394' id='L2394'>2394</a><a href='#L2395' id='L2395'>2395</a><a href='#L2396' id='L2396'>2396</a><a href='#L2397' id='L2397'>2397</a><a href='#L2398' id='L2398'>2398</a><a href='#L2399' id='L2399'>2399</a><a href='#L2400' id='L2400'>2400</a><a href='#L2401' id='L2401'>2401</a><a href='#L2402' id='L2402'>2402</a><a href='#L2403' id='L2403'>2403</a><a href='#L2404' id='L2404'>2404</a><a href='#L2405' id='L2405'>2405</a><a href='#L2406' id='L2406'>2406</a><a href='#L2407' id='L2407'>2407</a><a href='#L2408' id='L2408'>2408</a><a href='#L2409' id='L2409'>2409</a><a href='#L2410' id='L2410'>2410</a><a href='#L2411' id='L2411'>2411</a><a href='#L2412' id='L2412'>2412</a><a href='#L2413' id='L2413'>2413</a><a href='#L2414' id='L2414'>2414</a><a href='#L2415' id='L2415'>2415</a><a href='#L2416' id='L2416'>2416</a><a href='#L2417' id='L2417'>2417</a><a href='#L2418' id='L2418'>2418</a><a href='#L2419' id='L2419'>2419</a><a href='#L2420' id='L2420'>2420</a><a href='#L2421' id='L2421'>2421</a><a href='#L2422' id='L2422'>2422</a><a href='#L2423' id='L2423'>2423</a><a href='#L2424' id='L2424'>2424</a><a href='#L2425' id='L2425'>2425</a><a href='#L2426' id='L2426'>2426</a><a href='#L2427' id='L2427'>2427</a><a href='#L2428' id='L2428'>2428</a><a href='#L2429' id='L2429'>2429</a><a href='#L2430' id='L2430'>2430</a><a href='#L2431' id='L2431'>2431</a><a href='#L2432' id='L2432'>2432</a><a href='#L2433' id='L2433'>2433</a><a href='#L2434' id='L2434'>2434</a><a href='#L2435' id='L2435'>2435</a><a href='#L2436' id='L2436'>2436</a><a href='#L2437' id='L2437'>2437</a><a href='#L2438' id='L2438'>2438</a><a href='#L2439' id='L2439'>2439</a><a href='#L2440' id='L2440'>2440</a><a href='#L2441' id='L2441'>2441</a><a href='#L2442' id='L2442'>2442</a><a href='#L2443' id='L2443'>2443</a><a href='#L2444' id='L2444'>2444</a><a href='#L2445' id='L2445'>2445</a><a href='#L2446' id='L2446'>2446</a><a href='#L2447' id='L2447'>2447</a><a href='#L2448' id='L2448'>2448</a><a href='#L2449' id='L2449'>2449</a><a href='#L2450' id='L2450'>2450</a><a href='#L2451' id='L2451'>2451</a><a href='#L2452' id='L2452'>2452</a><a href='#L2453' id='L2453'>2453</a><a href='#L2454' id='L2454'>2454</a><a href='#L2455' id='L2455'>2455</a><a href='#L2456' id='L2456'>2456</a><a href='#L2457' id='L2457'>2457</a><a href='#L2458' id='L2458'>2458</a><a href='#L2459' id='L2459'>2459</a><a href='#L2460' id='L2460'>2460</a><a href='#L2461' id='L2461'>2461</a><a href='#L2462' id='L2462'>2462</a><a href='#L2463' id='L2463'>2463</a><a href='#L2464' id='L2464'>2464</a><a href='#L2465' id='L2465'>2465</a><a href='#L2466' id='L2466'>2466</a><a href='#L2467' id='L2467'>2467</a><a href='#L2468' id='L2468'>2468</a><a href='#L2469' id='L2469'>2469</a><a href='#L2470' id='L2470'>2470</a><a href='#L2471' id='L2471'>2471</a><a href='#L2472' id='L2472'>2472</a><a href='#L2473' id='L2473'>2473</a><a href='#L2474' id='L2474'>2474</a><a href='#L2475' id='L2475'>2475</a><a href='#L2476' id='L2476'>2476</a><a href='#L2477' id='L2477'>2477</a><a href='#L2478' id='L2478'>2478</a><a href='#L2479' id='L2479'>2479</a><a href='#L2480' id='L2480'>2480</a><a href='#L2481' id='L2481'>2481</a><a href='#L2482' id='L2482'>2482</a><a href='#L2483' id='L2483'>2483</a><a href='#L2484' id='L2484'>2484</a><a href='#L2485' id='L2485'>2485</a><a href='#L2486' id='L2486'>2486</a><a href='#L2487' id='L2487'>2487</a><a href='#L2488' id='L2488'>2488</a><a href='#L2489' id='L2489'>2489</a><a href='#L2490' id='L2490'>2490</a><a href='#L2491' id='L2491'>2491</a><a href='#L2492' id='L2492'>2492</a><a href='#L2493' id='L2493'>2493</a><a href='#L2494' id='L2494'>2494</a><a href='#L2495' id='L2495'>2495</a><a href='#L2496' id='L2496'>2496</a><a href='#L2497' id='L2497'>2497</a><a href='#L2498' id='L2498'>2498</a><a href='#L2499' id='L2499'>2499</a><a href='#L2500' id='L2500'>2500</a><a href='#L2501' id='L2501'>2501</a><a href='#L2502' id='L2502'>2502</a><a href='#L2503' id='L2503'>2503</a><a href='#L2504' id='L2504'>2504</a><a href='#L2505' id='L2505'>2505</a><a href='#L2506' id='L2506'>2506</a><a href='#L2507' id='L2507'>2507</a><a href='#L2508' id='L2508'>2508</a><a href='#L2509' id='L2509'>2509</a><a href='#L2510' id='L2510'>2510</a><a href='#L2511' id='L2511'>2511</a><a href='#L2512' id='L2512'>2512</a><a href='#L2513' id='L2513'>2513</a><a href='#L2514' id='L2514'>2514</a><a href='#L2515' id='L2515'>2515</a><a href='#L2516' id='L2516'>2516</a><a href='#L2517' id='L2517'>2517</a><a href='#L2518' id='L2518'>2518</a><a href='#L2519' id='L2519'>2519</a><a href='#L2520' id='L2520'>2520</a><a href='#L2521' id='L2521'>2521</a><a href='#L2522' id='L2522'>2522</a><a href='#L2523' id='L2523'>2523</a><a href='#L2524' id='L2524'>2524</a><a href='#L2525' id='L2525'>2525</a><a href='#L2526' id='L2526'>2526</a><a href='#L2527' id='L2527'>2527</a><a href='#L2528' id='L2528'>2528</a><a href='#L2529' id='L2529'>2529</a><a href='#L2530' id='L2530'>2530</a><a href='#L2531' id='L2531'>2531</a><a href='#L2532' id='L2532'>2532</a><a href='#L2533' id='L2533'>2533</a><a href='#L2534' id='L2534'>2534</a><a href='#L2535' id='L2535'>2535</a><a href='#L2536' id='L2536'>2536</a><a href='#L2537' id='L2537'>2537</a><a href='#L2538' id='L2538'>2538</a><a href='#L2539' id='L2539'>2539</a><a href='#L2540' id='L2540'>2540</a><a href='#L2541' id='L2541'>2541</a><a href='#L2542' id='L2542'>2542</a><a href='#L2543' id='L2543'>2543</a><a href='#L2544' id='L2544'>2544</a><a href='#L2545' id='L2545'>2545</a><a href='#L2546' id='L2546'>2546</a><a href='#L2547' id='L2547'>2547</a><a href='#L2548' id='L2548'>2548</a><a href='#L2549' id='L2549'>2549</a><a href='#L2550' id='L2550'>2550</a><a href='#L2551' id='L2551'>2551</a><a href='#L2552' id='L2552'>2552</a><a href='#L2553' id='L2553'>2553</a><a href='#L2554' id='L2554'>2554</a><a href='#L2555' id='L2555'>2555</a><a href='#L2556' id='L2556'>2556</a><a href='#L2557' id='L2557'>2557</a><a href='#L2558' id='L2558'>2558</a><a href='#L2559' id='L2559'>2559</a><a href='#L2560' id='L2560'>2560</a><a href='#L2561' id='L2561'>2561</a><a href='#L2562' id='L2562'>2562</a><a href='#L2563' id='L2563'>2563</a><a href='#L2564' id='L2564'>2564</a><a href='#L2565' id='L2565'>2565</a><a href='#L2566' id='L2566'>2566</a><a href='#L2567' id='L2567'>2567</a><a href='#L2568' id='L2568'>2568</a><a href='#L2569' id='L2569'>2569</a><a href='#L2570' id='L2570'>2570</a><a href='#L2571' id='L2571'>2571</a><a href='#L2572' id='L2572'>2572</a><a href='#L2573' id='L2573'>2573</a><a href='#L2574' id='L2574'>2574</a><a href='#L2575' id='L2575'>2575</a><a href='#L2576' id='L2576'>2576</a><a href='#L2577' id='L2577'>2577</a><a href='#L2578' id='L2578'>2578</a><a href='#L2579' id='L2579'>2579</a><a href='#L2580' id='L2580'>2580</a><a href='#L2581' id='L2581'>2581</a><a href='#L2582' id='L2582'>2582</a><a href='#L2583' id='L2583'>2583</a><a href='#L2584' id='L2584'>2584</a><a href='#L2585' id='L2585'>2585</a><a href='#L2586' id='L2586'>2586</a><a href='#L2587' id='L2587'>2587</a><a href='#L2588' id='L2588'>2588</a><a href='#L2589' id='L2589'>2589</a><a href='#L2590' id='L2590'>2590</a><a href='#L2591' id='L2591'>2591</a><a href='#L2592' id='L2592'>2592</a><a href='#L2593' id='L2593'>2593</a><a href='#L2594' id='L2594'>2594</a><a href='#L2595' id='L2595'>2595</a><a href='#L2596' id='L2596'>2596</a><a href='#L2597' id='L2597'>2597</a><a href='#L2598' id='L2598'>2598</a><a href='#L2599' id='L2599'>2599</a><a href='#L2600' id='L2600'>2600</a><a href='#L2601' id='L2601'>2601</a><a href='#L2602' id='L2602'>2602</a><a href='#L2603' id='L2603'>2603</a><a href='#L2604' id='L2604'>2604</a><a href='#L2605' id='L2605'>2605</a><a href='#L2606' id='L2606'>2606</a><a href='#L2607' id='L2607'>2607</a><a href='#L2608' id='L2608'>2608</a><a href='#L2609' id='L2609'>2609</a><a href='#L2610' id='L2610'>2610</a><a href='#L2611' id='L2611'>2611</a><a href='#L2612' id='L2612'>2612</a><a href='#L2613' id='L2613'>2613</a><a href='#L2614' id='L2614'>2614</a><a href='#L2615' id='L2615'>2615</a><a href='#L2616' id='L2616'>2616</a><a href='#L2617' id='L2617'>2617</a><a href='#L2618' id='L2618'>2618</a><a href='#L2619' id='L2619'>2619</a><a href='#L2620' id='L2620'>2620</a><a href='#L2621' id='L2621'>2621</a><a href='#L2622' id='L2622'>2622</a><a href='#L2623' id='L2623'>2623</a><a href='#L2624' id='L2624'>2624</a><a href='#L2625' id='L2625'>2625</a><a href='#L2626' id='L2626'>2626</a><a href='#L2627' id='L2627'>2627</a><a href='#L2628' id='L2628'>2628</a><a href='#L2629' id='L2629'>2629</a><a href='#L2630' id='L2630'>2630</a><a href='#L2631' id='L2631'>2631</a><a href='#L2632' id='L2632'>2632</a><a href='#L2633' id='L2633'>2633</a><a href='#L2634' id='L2634'>2634</a><a href='#L2635' id='L2635'>2635</a><a href='#L2636' id='L2636'>2636</a><a href='#L2637' id='L2637'>2637</a><a href='#L2638' id='L2638'>2638</a><a href='#L2639' id='L2639'>2639</a><a href='#L2640' id='L2640'>2640</a><a href='#L2641' id='L2641'>2641</a><a href='#L2642' id='L2642'>2642</a><a href='#L2643' id='L2643'>2643</a><a href='#L2644' id='L2644'>2644</a><a href='#L2645' id='L2645'>2645</a><a href='#L2646' id='L2646'>2646</a><a href='#L2647' id='L2647'>2647</a><a href='#L2648' id='L2648'>2648</a><a href='#L2649' id='L2649'>2649</a><a href='#L2650' id='L2650'>2650</a><a href='#L2651' id='L2651'>2651</a><a href='#L2652' id='L2652'>2652</a><a href='#L2653' id='L2653'>2653</a><a href='#L2654' id='L2654'>2654</a><a href='#L2655' id='L2655'>2655</a><a href='#L2656' id='L2656'>2656</a><a href='#L2657' id='L2657'>2657</a><a href='#L2658' id='L2658'>2658</a><a href='#L2659' id='L2659'>2659</a><a href='#L2660' id='L2660'>2660</a><a href='#L2661' id='L2661'>2661</a><a href='#L2662' id='L2662'>2662</a><a href='#L2663' id='L2663'>2663</a><a href='#L2664' id='L2664'>2664</a><a href='#L2665' id='L2665'>2665</a><a href='#L2666' id='L2666'>2666</a><a href='#L2667' id='L2667'>2667</a><a href='#L2668' id='L2668'>2668</a><a href='#L2669' id='L2669'>2669</a><a href='#L2670' id='L2670'>2670</a><a href='#L2671' id='L2671'>2671</a><a href='#L2672' id='L2672'>2672</a><a href='#L2673' id='L2673'>2673</a><a href='#L2674' id='L2674'>2674</a><a href='#L2675' id='L2675'>2675</a><a href='#L2676' id='L2676'>2676</a><a href='#L2677' id='L2677'>2677</a><a href='#L2678' id='L2678'>2678</a><a href='#L2679' id='L2679'>2679</a><a href='#L2680' id='L2680'>2680</a><a href='#L2681' id='L2681'>2681</a><a href='#L2682' id='L2682'>2682</a><a href='#L2683' id='L2683'>2683</a><a href='#L2684' id='L2684'>2684</a><a href='#L2685' id='L2685'>2685</a><a href='#L2686' id='L2686'>2686</a><a href='#L2687' id='L2687'>2687</a><a href='#L2688' id='L2688'>2688</a><a href='#L2689' id='L2689'>2689</a><a href='#L2690' id='L2690'>2690</a><a href='#L2691' id='L2691'>2691</a><a href='#L2692' id='L2692'>2692</a><a href='#L2693' id='L2693'>2693</a><a href='#L2694' id='L2694'>2694</a><a href='#L2695' id='L2695'>2695</a><a href='#L2696' id='L2696'>2696</a><a href='#L2697' id='L2697'>2697</a><a href='#L2698' id='L2698'>2698</a><a href='#L2699' id='L2699'>2699</a><a href='#L2700' id='L2700'>2700</a><a href='#L2701' id='L2701'>2701</a><a href='#L2702' id='L2702'>2702</a><a href='#L2703' id='L2703'>2703</a><a href='#L2704' id='L2704'>2704</a><a href='#L2705' id='L2705'>2705</a><a href='#L2706' id='L2706'>2706</a><a href='#L2707' id='L2707'>2707</a><a href='#L2708' id='L2708'>2708</a><a href='#L2709' id='L2709'>2709</a><a href='#L2710' id='L2710'>2710</a><a href='#L2711' id='L2711'>2711</a><a href='#L2712' id='L2712'>2712</a><a href='#L2713' id='L2713'>2713</a><a href='#L2714' id='L2714'>2714</a><a href='#L2715' id='L2715'>2715</a><a href='#L2716' id='L2716'>2716</a><a href='#L2717' id='L2717'>2717</a><a href='#L2718' id='L2718'>2718</a><a href='#L2719' id='L2719'>2719</a><a href='#L2720' id='L2720'>2720</a><a href='#L2721' id='L2721'>2721</a><a href='#L2722' id='L2722'>2722</a><a href='#L2723' id='L2723'>2723</a><a href='#L2724' id='L2724'>2724</a><a href='#L2725' id='L2725'>2725</a><a href='#L2726' id='L2726'>2726</a><a href='#L2727' id='L2727'>2727</a><a href='#L2728' id='L2728'>2728</a><a href='#L2729' id='L2729'>2729</a><a href='#L2730' id='L2730'>2730</a><a href='#L2731' id='L2731'>2731</a><a href='#L2732' id='L2732'>2732</a><a href='#L2733' id='L2733'>2733</a><a href='#L2734' id='L2734'>2734</a><a href='#L2735' id='L2735'>2735</a><a href='#L2736' id='L2736'>2736</a><a href='#L2737' id='L2737'>2737</a><a href='#L2738' id='L2738'>2738</a><a href='#L2739' id='L2739'>2739</a><a href='#L2740' id='L2740'>2740</a><a href='#L2741' id='L2741'>2741</a><a href='#L2742' id='L2742'>2742</a><a href='#L2743' id='L2743'>2743</a><a href='#L2744' id='L2744'>2744</a><a href='#L2745' id='L2745'>2745</a><a href='#L2746' id='L2746'>2746</a><a href='#L2747' id='L2747'>2747</a><a href='#L2748' id='L2748'>2748</a><a href='#L2749' id='L2749'>2749</a><a href='#L2750' id='L2750'>2750</a><a href='#L2751' id='L2751'>2751</a><a href='#L2752' id='L2752'>2752</a><a href='#L2753' id='L2753'>2753</a><a href='#L2754' id='L2754'>2754</a><a href='#L2755' id='L2755'>2755</a><a href='#L2756' id='L2756'>2756</a><a href='#L2757' id='L2757'>2757</a><a href='#L2758' id='L2758'>2758</a><a href='#L2759' id='L2759'>2759</a><a href='#L2760' id='L2760'>2760</a><a href='#L2761' id='L2761'>2761</a><a href='#L2762' id='L2762'>2762</a><a href='#L2763' id='L2763'>2763</a><a href='#L2764' id='L2764'>2764</a><a href='#L2765' id='L2765'>2765</a><a href='#L2766' id='L2766'>2766</a><a href='#L2767' id='L2767'>2767</a><a href='#L2768' id='L2768'>2768</a><a href='#L2769' id='L2769'>2769</a><a href='#L2770' id='L2770'>2770</a><a href='#L2771' id='L2771'>2771</a><a href='#L2772' id='L2772'>2772</a><a href='#L2773' id='L2773'>2773</a><a href='#L2774' id='L2774'>2774</a><a href='#L2775' id='L2775'>2775</a><a href='#L2776' id='L2776'>2776</a><a href='#L2777' id='L2777'>2777</a><a href='#L2778' id='L2778'>2778</a><a href='#L2779' id='L2779'>2779</a><a href='#L2780' id='L2780'>2780</a><a href='#L2781' id='L2781'>2781</a><a href='#L2782' id='L2782'>2782</a><a href='#L2783' id='L2783'>2783</a><a href='#L2784' id='L2784'>2784</a><a href='#L2785' id='L2785'>2785</a><a href='#L2786' id='L2786'>2786</a><a href='#L2787' id='L2787'>2787</a><a href='#L2788' id='L2788'>2788</a><a href='#L2789' id='L2789'>2789</a><a href='#L2790' id='L2790'>2790</a><a href='#L2791' id='L2791'>2791</a><a href='#L2792' id='L2792'>2792</a><a href='#L2793' id='L2793'>2793</a><a href='#L2794' id='L2794'>2794</a><a href='#L2795' id='L2795'>2795</a><a href='#L2796' id='L2796'>2796</a><a href='#L2797' id='L2797'>2797</a><a href='#L2798' id='L2798'>2798</a><a href='#L2799' id='L2799'>2799</a><a href='#L2800' id='L2800'>2800</a><a href='#L2801' id='L2801'>2801</a><a href='#L2802' id='L2802'>2802</a><a href='#L2803' id='L2803'>2803</a><a href='#L2804' id='L2804'>2804</a><a href='#L2805' id='L2805'>2805</a><a href='#L2806' id='L2806'>2806</a><a href='#L2807' id='L2807'>2807</a><a href='#L2808' id='L2808'>2808</a><a href='#L2809' id='L2809'>2809</a><a href='#L2810' id='L2810'>2810</a><a href='#L2811' id='L2811'>2811</a><a href='#L2812' id='L2812'>2812</a><a href='#L2813' id='L2813'>2813</a><a href='#L2814' id='L2814'>2814</a><a href='#L2815' id='L2815'>2815</a><a href='#L2816' id='L2816'>2816</a><a href='#L2817' id='L2817'>2817</a><a href='#L2818' id='L2818'>2818</a><a href='#L2819' id='L2819'>2819</a><a href='#L2820' id='L2820'>2820</a><a href='#L2821' id='L2821'>2821</a><a href='#L2822' id='L2822'>2822</a><a href='#L2823' id='L2823'>2823</a><a href='#L2824' id='L2824'>2824</a><a href='#L2825' id='L2825'>2825</a><a href='#L2826' id='L2826'>2826</a><a href='#L2827' id='L2827'>2827</a><a href='#L2828' id='L2828'>2828</a><a href='#L2829' id='L2829'>2829</a><a href='#L2830' id='L2830'>2830</a><a href='#L2831' id='L2831'>2831</a><a href='#L2832' id='L2832'>2832</a><a href='#L2833' id='L2833'>2833</a><a href='#L2834' id='L2834'>2834</a><a href='#L2835' id='L2835'>2835</a><a href='#L2836' id='L2836'>2836</a><a href='#L2837' id='L2837'>2837</a><a href='#L2838' id='L2838'>2838</a><a href='#L2839' id='L2839'>2839</a><a href='#L2840' id='L2840'>2840</a><a href='#L2841' id='L2841'>2841</a><a href='#L2842' id='L2842'>2842</a><a href='#L2843' id='L2843'>2843</a><a href='#L2844' id='L2844'>2844</a><a href='#L2845' id='L2845'>2845</a><a href='#L2846' id='L2846'>2846</a><a href='#L2847' id='L2847'>2847</a><a href='#L2848' id='L2848'>2848</a><a href='#L2849' id='L2849'>2849</a><a href='#L2850' id='L2850'>2850</a><a href='#L2851' id='L2851'>2851</a><a href='#L2852' id='L2852'>2852</a><a href='#L2853' id='L2853'>2853</a><a href='#L2854' id='L2854'>2854</a><a href='#L2855' id='L2855'>2855</a><a href='#L2856' id='L2856'>2856</a><a href='#L2857' id='L2857'>2857</a><a href='#L2858' id='L2858'>2858</a><a href='#L2859' id='L2859'>2859</a><a href='#L2860' id='L2860'>2860</a><a href='#L2861' id='L2861'>2861</a><a href='#L2862' id='L2862'>2862</a><a href='#L2863' id='L2863'>2863</a><a href='#L2864' id='L2864'>2864</a><a href='#L2865' id='L2865'>2865</a><a href='#L2866' id='L2866'>2866</a><a href='#L2867' id='L2867'>2867</a><a href='#L2868' id='L2868'>2868</a><a href='#L2869' id='L2869'>2869</a><a href='#L2870' id='L2870'>2870</a><a href='#L2871' id='L2871'>2871</a><a href='#L2872' id='L2872'>2872</a><a href='#L2873' id='L2873'>2873</a><a href='#L2874' id='L2874'>2874</a><a href='#L2875' id='L2875'>2875</a><a href='#L2876' id='L2876'>2876</a><a href='#L2877' id='L2877'>2877</a><a href='#L2878' id='L2878'>2878</a><a href='#L2879' id='L2879'>2879</a><a href='#L2880' id='L2880'>2880</a><a href='#L2881' id='L2881'>2881</a><a href='#L2882' id='L2882'>2882</a><a href='#L2883' id='L2883'>2883</a><a href='#L2884' id='L2884'>2884</a><a href='#L2885' id='L2885'>2885</a><a href='#L2886' id='L2886'>2886</a><a href='#L2887' id='L2887'>2887</a><a href='#L2888' id='L2888'>2888</a><a href='#L2889' id='L2889'>2889</a><a href='#L2890' id='L2890'>2890</a><a href='#L2891' id='L2891'>2891</a><a href='#L2892' id='L2892'>2892</a><a href='#L2893' id='L2893'>2893</a><a href='#L2894' id='L2894'>2894</a><a href='#L2895' id='L2895'>2895</a><a href='#L2896' id='L2896'>2896</a><a href='#L2897' id='L2897'>2897</a><a href='#L2898' id='L2898'>2898</a><a href='#L2899' id='L2899'>2899</a><a href='#L2900' id='L2900'>2900</a><a href='#L2901' id='L2901'>2901</a><a href='#L2902' id='L2902'>2902</a><a href='#L2903' id='L2903'>2903</a><a href='#L2904' id='L2904'>2904</a><a href='#L2905' id='L2905'>2905</a><a href='#L2906' id='L2906'>2906</a><a href='#L2907' id='L2907'>2907</a><a href='#L2908' id='L2908'>2908</a><a href='#L2909' id='L2909'>2909</a><a href='#L2910' id='L2910'>2910</a><a href='#L2911' id='L2911'>2911</a><a href='#L2912' id='L2912'>2912</a><a href='#L2913' id='L2913'>2913</a><a href='#L2914' id='L2914'>2914</a><a href='#L2915' id='L2915'>2915</a><a href='#L2916' id='L2916'>2916</a><a href='#L2917' id='L2917'>2917</a><a href='#L2918' id='L2918'>2918</a><a href='#L2919' id='L2919'>2919</a><a href='#L2920' id='L2920'>2920</a><a href='#L2921' id='L2921'>2921</a><a href='#L2922' id='L2922'>2922</a><a href='#L2923' id='L2923'>2923</a><a href='#L2924' id='L2924'>2924</a><a href='#L2925' id='L2925'>2925</a><a href='#L2926' id='L2926'>2926</a><a href='#L2927' id='L2927'>2927</a><a href='#L2928' id='L2928'>2928</a><a href='#L2929' id='L2929'>2929</a><a href='#L2930' id='L2930'>2930</a><a href='#L2931' id='L2931'>2931</a><a href='#L2932' id='L2932'>2932</a><a href='#L2933' id='L2933'>2933</a><a href='#L2934' id='L2934'>2934</a><a href='#L2935' id='L2935'>2935</a><a href='#L2936' id='L2936'>2936</a><a href='#L2937' id='L2937'>2937</a><a href='#L2938' id='L2938'>2938</a><a href='#L2939' id='L2939'>2939</a><a href='#L2940' id='L2940'>2940</a><a href='#L2941' id='L2941'>2941</a><a href='#L2942' id='L2942'>2942</a><a href='#L2943' id='L2943'>2943</a><a href='#L2944' id='L2944'>2944</a><a href='#L2945' id='L2945'>2945</a><a href='#L2946' id='L2946'>2946</a><a href='#L2947' id='L2947'>2947</a><a href='#L2948' id='L2948'>2948</a><a href='#L2949' id='L2949'>2949</a><a href='#L2950' id='L2950'>2950</a><a href='#L2951' id='L2951'>2951</a><a href='#L2952' id='L2952'>2952</a><a href='#L2953' id='L2953'>2953</a><a href='#L2954' id='L2954'>2954</a><a href='#L2955' id='L2955'>2955</a><a href='#L2956' id='L2956'>2956</a><a href='#L2957' id='L2957'>2957</a><a href='#L2958' id='L2958'>2958</a><a href='#L2959' id='L2959'>2959</a><a href='#L2960' id='L2960'>2960</a><a href='#L2961' id='L2961'>2961</a><a href='#L2962' id='L2962'>2962</a><a href='#L2963' id='L2963'>2963</a><a href='#L2964' id='L2964'>2964</a><a href='#L2965' id='L2965'>2965</a><a href='#L2966' id='L2966'>2966</a><a href='#L2967' id='L2967'>2967</a><a href='#L2968' id='L2968'>2968</a><a href='#L2969' id='L2969'>2969</a><a href='#L2970' id='L2970'>2970</a><a href='#L2971' id='L2971'>2971</a><a href='#L2972' id='L2972'>2972</a><a href='#L2973' id='L2973'>2973</a><a href='#L2974' id='L2974'>2974</a><a href='#L2975' id='L2975'>2975</a><a href='#L2976' id='L2976'>2976</a><a href='#L2977' id='L2977'>2977</a><a href='#L2978' id='L2978'>2978</a><a href='#L2979' id='L2979'>2979</a><a href='#L2980' id='L2980'>2980</a><a href='#L2981' id='L2981'>2981</a><a href='#L2982' id='L2982'>2982</a><a href='#L2983' id='L2983'>2983</a><a href='#L2984' id='L2984'>2984</a><a href='#L2985' id='L2985'>2985</a><a href='#L2986' id='L2986'>2986</a><a href='#L2987' id='L2987'>2987</a><a href='#L2988' id='L2988'>2988</a><a href='#L2989' id='L2989'>2989</a><a href='#L2990' id='L2990'>2990</a><a href='#L2991' id='L2991'>2991</a><a href='#L2992' id='L2992'>2992</a><a href='#L2993' id='L2993'>2993</a><a href='#L2994' id='L2994'>2994</a><a href='#L2995' id='L2995'>2995</a><a href='#L2996' id='L2996'>2996</a><a href='#L2997' id='L2997'>2997</a><a href='#L2998' id='L2998'>2998</a><a href='#L2999' id='L2999'>2999</a><a href='#L3000' id='L3000'>3000</a><a href='#L3001' id='L3001'>3001</a><a href='#L3002' id='L3002'>3002</a><a href='#L3003' id='L3003'>3003</a><a href='#L3004' id='L3004'>3004</a><a href='#L3005' id='L3005'>3005</a><a href='#L3006' id='L3006'>3006</a><a href='#L3007' id='L3007'>3007</a><a href='#L3008' id='L3008'>3008</a><a href='#L3009' id='L3009'>3009</a><a href='#L3010' id='L3010'>3010</a><a href='#L3011' id='L3011'>3011</a><a href='#L3012' id='L3012'>3012</a><a href='#L3013' id='L3013'>3013</a><a href='#L3014' id='L3014'>3014</a><a href='#L3015' id='L3015'>3015</a><a href='#L3016' id='L3016'>3016</a><a href='#L3017' id='L3017'>3017</a><a href='#L3018' id='L3018'>3018</a><a href='#L3019' id='L3019'>3019</a><a href='#L3020' id='L3020'>3020</a><a href='#L3021' id='L3021'>3021</a><a href='#L3022' id='L3022'>3022</a><a href='#L3023' id='L3023'>3023</a><a href='#L3024' id='L3024'>3024</a><a href='#L3025' id='L3025'>3025</a><a href='#L3026' id='L3026'>3026</a><a href='#L3027' id='L3027'>3027</a><a href='#L3028' id='L3028'>3028</a><a href='#L3029' id='L3029'>3029</a><a href='#L3030' id='L3030'>3030</a><a href='#L3031' id='L3031'>3031</a><a href='#L3032' id='L3032'>3032</a><a href='#L3033' id='L3033'>3033</a><a href='#L3034' id='L3034'>3034</a><a href='#L3035' id='L3035'>3035</a><a href='#L3036' id='L3036'>3036</a><a href='#L3037' id='L3037'>3037</a><a href='#L3038' id='L3038'>3038</a><a href='#L3039' id='L3039'>3039</a><a href='#L3040' id='L3040'>3040</a><a href='#L3041' id='L3041'>3041</a><a href='#L3042' id='L3042'>3042</a><a href='#L3043' id='L3043'>3043</a><a href='#L3044' id='L3044'>3044</a><a href='#L3045' id='L3045'>3045</a><a href='#L3046' id='L3046'>3046</a><a href='#L3047' id='L3047'>3047</a><a href='#L3048' id='L3048'>3048</a><a href='#L3049' id='L3049'>3049</a><a href='#L3050' id='L3050'>3050</a><a href='#L3051' id='L3051'>3051</a><a href='#L3052' id='L3052'>3052</a><a href='#L3053' id='L3053'>3053</a><a href='#L3054' id='L3054'>3054</a><a href='#L3055' id='L3055'>3055</a><a href='#L3056' id='L3056'>3056</a><a href='#L3057' id='L3057'>3057</a><a href='#L3058' id='L3058'>3058</a><a href='#L3059' id='L3059'>3059</a><a href='#L3060' id='L3060'>3060</a><a href='#L3061' id='L3061'>3061</a><a href='#L3062' id='L3062'>3062</a><a href='#L3063' id='L3063'>3063</a><a href='#L3064' id='L3064'>3064</a><a href='#L3065' id='L3065'>3065</a><a href='#L3066' id='L3066'>3066</a><a href='#L3067' id='L3067'>3067</a><a href='#L3068' id='L3068'>3068</a><a href='#L3069' id='L3069'>3069</a><a href='#L3070' id='L3070'>3070</a><a href='#L3071' id='L3071'>3071</a><a href='#L3072' id='L3072'>3072</a><a href='#L3073' id='L3073'>3073</a><a href='#L3074' id='L3074'>3074</a><a href='#L3075' id='L3075'>3075</a><a href='#L3076' id='L3076'>3076</a><a href='#L3077' id='L3077'>3077</a><a href='#L3078' id='L3078'>3078</a><a href='#L3079' id='L3079'>3079</a><a href='#L3080' id='L3080'>3080</a><a href='#L3081' id='L3081'>3081</a><a href='#L3082' id='L3082'>3082</a><a href='#L3083' id='L3083'>3083</a><a href='#L3084' id='L3084'>3084</a><a href='#L3085' id='L3085'>3085</a><a href='#L3086' id='L3086'>3086</a><a href='#L3087' id='L3087'>3087</a><a href='#L3088' id='L3088'>3088</a><a href='#L3089' id='L3089'>3089</a><a href='#L3090' id='L3090'>3090</a><a href='#L3091' id='L3091'>3091</a><a href='#L3092' id='L3092'>3092</a><a href='#L3093' id='L3093'>3093</a><a href='#L3094' id='L3094'>3094</a><a href='#L3095' id='L3095'>3095</a><a href='#L3096' id='L3096'>3096</a><a href='#L3097' id='L3097'>3097</a><a href='#L3098' id='L3098'>3098</a><a href='#L3099' id='L3099'>3099</a><a href='#L3100' id='L3100'>3100</a><a href='#L3101' id='L3101'>3101</a><a href='#L3102' id='L3102'>3102</a><a href='#L3103' id='L3103'>3103</a><a href='#L3104' id='L3104'>3104</a><a href='#L3105' id='L3105'>3105</a><a href='#L3106' id='L3106'>3106</a><a href='#L3107' id='L3107'>3107</a><a href='#L3108' id='L3108'>3108</a><a href='#L3109' id='L3109'>3109</a><a href='#L3110' id='L3110'>3110</a><a href='#L3111' id='L3111'>3111</a><a href='#L3112' id='L3112'>3112</a><a href='#L3113' id='L3113'>3113</a><a href='#L3114' id='L3114'>3114</a><a href='#L3115' id='L3115'>3115</a><a href='#L3116' id='L3116'>3116</a><a href='#L3117' id='L3117'>3117</a><a href='#L3118' id='L3118'>3118</a><a href='#L3119' id='L3119'>3119</a><a href='#L3120' id='L3120'>3120</a><a href='#L3121' id='L3121'>3121</a><a href='#L3122' id='L3122'>3122</a><a href='#L3123' id='L3123'>3123</a><a href='#L3124' id='L3124'>3124</a><a href='#L3125' id='L3125'>3125</a><a href='#L3126' id='L3126'>3126</a><a href='#L3127' id='L3127'>3127</a><a href='#L3128' id='L3128'>3128</a><a href='#L3129' id='L3129'>3129</a><a href='#L3130' id='L3130'>3130</a><a href='#L3131' id='L3131'>3131</a><a href='#L3132' id='L3132'>3132</a><a href='#L3133' id='L3133'>3133</a><a href='#L3134' id='L3134'>3134</a><a href='#L3135' id='L3135'>3135</a><a href='#L3136' id='L3136'>3136</a><a href='#L3137' id='L3137'>3137</a><a href='#L3138' id='L3138'>3138</a><a href='#L3139' id='L3139'>3139</a><a href='#L3140' id='L3140'>3140</a><a href='#L3141' id='L3141'>3141</a><a href='#L3142' id='L3142'>3142</a><a href='#L3143' id='L3143'>3143</a><a href='#L3144' id='L3144'>3144</a><a href='#L3145' id='L3145'>3145</a><a href='#L3146' id='L3146'>3146</a><a href='#L3147' id='L3147'>3147</a><a href='#L3148' id='L3148'>3148</a><a href='#L3149' id='L3149'>3149</a><a href='#L3150' id='L3150'>3150</a><a href='#L3151' id='L3151'>3151</a><a href='#L3152' id='L3152'>3152</a><a href='#L3153' id='L3153'>3153</a><a href='#L3154' id='L3154'>3154</a><a href='#L3155' id='L3155'>3155</a><a href='#L3156' id='L3156'>3156</a><a href='#L3157' id='L3157'>3157</a><a href='#L3158' id='L3158'>3158</a><a href='#L3159' id='L3159'>3159</a><a href='#L3160' id='L3160'>3160</a><a href='#L3161' id='L3161'>3161</a><a href='#L3162' id='L3162'>3162</a><a href='#L3163' id='L3163'>3163</a><a href='#L3164' id='L3164'>3164</a><a href='#L3165' id='L3165'>3165</a><a href='#L3166' id='L3166'>3166</a><a href='#L3167' id='L3167'>3167</a><a href='#L3168' id='L3168'>3168</a><a href='#L3169' id='L3169'>3169</a><a href='#L3170' id='L3170'>3170</a><a href='#L3171' id='L3171'>3171</a><a href='#L3172' id='L3172'>3172</a><a href='#L3173' id='L3173'>3173</a><a href='#L3174' id='L3174'>3174</a><a href='#L3175' id='L3175'>3175</a><a href='#L3176' id='L3176'>3176</a><a href='#L3177' id='L3177'>3177</a><a href='#L3178' id='L3178'>3178</a><a href='#L3179' id='L3179'>3179</a><a href='#L3180' id='L3180'>3180</a><a href='#L3181' id='L3181'>3181</a><a href='#L3182' id='L3182'>3182</a><a href='#L3183' id='L3183'>3183</a><a href='#L3184' id='L3184'>3184</a><a href='#L3185' id='L3185'>3185</a><a href='#L3186' id='L3186'>3186</a><a href='#L3187' id='L3187'>3187</a><a href='#L3188' id='L3188'>3188</a><a href='#L3189' id='L3189'>3189</a><a href='#L3190' id='L3190'>3190</a><a href='#L3191' id='L3191'>3191</a><a href='#L3192' id='L3192'>3192</a><a href='#L3193' id='L3193'>3193</a><a href='#L3194' id='L3194'>3194</a><a href='#L3195' id='L3195'>3195</a><a href='#L3196' id='L3196'>3196</a><a href='#L3197' id='L3197'>3197</a><a href='#L3198' id='L3198'>3198</a><a href='#L3199' id='L3199'>3199</a><a href='#L3200' id='L3200'>3200</a><a href='#L3201' id='L3201'>3201</a><a href='#L3202' id='L3202'>3202</a><a href='#L3203' id='L3203'>3203</a><a href='#L3204' id='L3204'>3204</a><a href='#L3205' id='L3205'>3205</a><a href='#L3206' id='L3206'>3206</a><a href='#L3207' id='L3207'>3207</a><a href='#L3208' id='L3208'>3208</a><a href='#L3209' id='L3209'>3209</a><a href='#L3210' id='L3210'>3210</a><a href='#L3211' id='L3211'>3211</a><a href='#L3212' id='L3212'>3212</a><a href='#L3213' id='L3213'>3213</a><a href='#L3214' id='L3214'>3214</a><a href='#L3215' id='L3215'>3215</a><a href='#L3216' id='L3216'>3216</a><a href='#L3217' id='L3217'>3217</a><a href='#L3218' id='L3218'>3218</a><a href='#L3219' id='L3219'>3219</a><a href='#L3220' id='L3220'>3220</a><a href='#L3221' id='L3221'>3221</a><a href='#L3222' id='L3222'>3222</a><a href='#L3223' id='L3223'>3223</a><a href='#L3224' id='L3224'>3224</a><a href='#L3225' id='L3225'>3225</a><a href='#L3226' id='L3226'>3226</a><a href='#L3227' id='L3227'>3227</a><a href='#L3228' id='L3228'>3228</a><a href='#L3229' id='L3229'>3229</a><a href='#L3230' id='L3230'>3230</a><a href='#L3231' id='L3231'>3231</a><a href='#L3232' id='L3232'>3232</a><a href='#L3233' id='L3233'>3233</a><a href='#L3234' id='L3234'>3234</a><a href='#L3235' id='L3235'>3235</a><a href='#L3236' id='L3236'>3236</a><a href='#L3237' id='L3237'>3237</a><a href='#L3238' id='L3238'>3238</a><a href='#L3239' id='L3239'>3239</a><a href='#L3240' id='L3240'>3240</a><a href='#L3241' id='L3241'>3241</a><a href='#L3242' id='L3242'>3242</a><a href='#L3243' id='L3243'>3243</a><a href='#L3244' id='L3244'>3244</a><a href='#L3245' id='L3245'>3245</a><a href='#L3246' id='L3246'>3246</a><a href='#L3247' id='L3247'>3247</a><a href='#L3248' id='L3248'>3248</a><a href='#L3249' id='L3249'>3249</a><a href='#L3250' id='L3250'>3250</a><a href='#L3251' id='L3251'>3251</a><a href='#L3252' id='L3252'>3252</a><a href='#L3253' id='L3253'>3253</a><a href='#L3254' id='L3254'>3254</a><a href='#L3255' id='L3255'>3255</a><a href='#L3256' id='L3256'>3256</a><a href='#L3257' id='L3257'>3257</a><a href='#L3258' id='L3258'>3258</a><a href='#L3259' id='L3259'>3259</a><a href='#L3260' id='L3260'>3260</a><a href='#L3261' id='L3261'>3261</a><a href='#L3262' id='L3262'>3262</a><a href='#L3263' id='L3263'>3263</a><a href='#L3264' id='L3264'>3264</a><a href='#L3265' id='L3265'>3265</a><a href='#L3266' id='L3266'>3266</a><a href='#L3267' id='L3267'>3267</a><a href='#L3268' id='L3268'>3268</a><a href='#L3269' id='L3269'>3269</a><a href='#L3270' id='L3270'>3270</a><a href='#L3271' id='L3271'>3271</a><a href='#L3272' id='L3272'>3272</a><a href='#L3273' id='L3273'>3273</a><a href='#L3274' id='L3274'>3274</a><a href='#L3275' id='L3275'>3275</a><a href='#L3276' id='L3276'>3276</a><a href='#L3277' id='L3277'>3277</a><a href='#L3278' id='L3278'>3278</a><a href='#L3279' id='L3279'>3279</a><a href='#L3280' id='L3280'>3280</a><a href='#L3281' id='L3281'>3281</a><a href='#L3282' id='L3282'>3282</a><a href='#L3283' id='L3283'>3283</a><a href='#L3284' id='L3284'>3284</a><a href='#L3285' id='L3285'>3285</a><a href='#L3286' id='L3286'>3286</a><a href='#L3287' id='L3287'>3287</a><a href='#L3288' id='L3288'>3288</a><a href='#L3289' id='L3289'>3289</a><a href='#L3290' id='L3290'>3290</a><a href='#L3291' id='L3291'>3291</a><a href='#L3292' id='L3292'>3292</a><a href='#L3293' id='L3293'>3293</a><a href='#L3294' id='L3294'>3294</a><a href='#L3295' id='L3295'>3295</a><a href='#L3296' id='L3296'>3296</a><a href='#L3297' id='L3297'>3297</a><a href='#L3298' id='L3298'>3298</a><a href='#L3299' id='L3299'>3299</a><a href='#L3300' id='L3300'>3300</a><a href='#L3301' id='L3301'>3301</a><a href='#L3302' id='L3302'>3302</a><a href='#L3303' id='L3303'>3303</a><a href='#L3304' id='L3304'>3304</a><a href='#L3305' id='L3305'>3305</a><a href='#L3306' id='L3306'>3306</a><a href='#L3307' id='L3307'>3307</a><a href='#L3308' id='L3308'>3308</a><a href='#L3309' id='L3309'>3309</a><a href='#L3310' id='L3310'>3310</a><a href='#L3311' id='L3311'>3311</a><a href='#L3312' id='L3312'>3312</a><a href='#L3313' id='L3313'>3313</a><a href='#L3314' id='L3314'>3314</a><a href='#L3315' id='L3315'>3315</a><a href='#L3316' id='L3316'>3316</a><a href='#L3317' id='L3317'>3317</a><a href='#L3318' id='L3318'>3318</a><a href='#L3319' id='L3319'>3319</a><a href='#L3320' id='L3320'>3320</a><a href='#L3321' id='L3321'>3321</a><a href='#L3322' id='L3322'>3322</a><a href='#L3323' id='L3323'>3323</a><a href='#L3324' id='L3324'>3324</a><a href='#L3325' id='L3325'>3325</a><a href='#L3326' id='L3326'>3326</a><a href='#L3327' id='L3327'>3327</a><a href='#L3328' id='L3328'>3328</a><a href='#L3329' id='L3329'>3329</a><a href='#L3330' id='L3330'>3330</a><a href='#L3331' id='L3331'>3331</a><a href='#L3332' id='L3332'>3332</a><a href='#L3333' id='L3333'>3333</a><a href='#L3334' id='L3334'>3334</a><a href='#L3335' id='L3335'>3335</a><a href='#L3336' id='L3336'>3336</a><a href='#L3337' id='L3337'>3337</a><a href='#L3338' id='L3338'>3338</a><a href='#L3339' id='L3339'>3339</a><a href='#L3340' id='L3340'>3340</a><a href='#L3341' id='L3341'>3341</a><a href='#L3342' id='L3342'>3342</a><a href='#L3343' id='L3343'>3343</a><a href='#L3344' id='L3344'>3344</a><a href='#L3345' id='L3345'>3345</a><a href='#L3346' id='L3346'>3346</a><a href='#L3347' id='L3347'>3347</a><a href='#L3348' id='L3348'>3348</a><a href='#L3349' id='L3349'>3349</a><a href='#L3350' id='L3350'>3350</a><a href='#L3351' id='L3351'>3351</a><a href='#L3352' id='L3352'>3352</a><a href='#L3353' id='L3353'>3353</a><a href='#L3354' id='L3354'>3354</a><a href='#L3355' id='L3355'>3355</a><a href='#L3356' id='L3356'>3356</a><a href='#L3357' id='L3357'>3357</a><a href='#L3358' id='L3358'>3358</a><a href='#L3359' id='L3359'>3359</a><a href='#L3360' id='L3360'>3360</a><a href='#L3361' id='L3361'>3361</a><a href='#L3362' id='L3362'>3362</a><a href='#L3363' id='L3363'>3363</a><a href='#L3364' id='L3364'>3364</a><a href='#L3365' id='L3365'>3365</a><a href='#L3366' id='L3366'>3366</a><a href='#L3367' id='L3367'>3367</a><a href='#L3368' id='L3368'>3368</a><a href='#L3369' id='L3369'>3369</a><a href='#L3370' id='L3370'>3370</a><a href='#L3371' id='L3371'>3371</a><a href='#L3372' id='L3372'>3372</a><a href='#L3373' id='L3373'>3373</a><a href='#L3374' id='L3374'>3374</a><a href='#L3375' id='L3375'>3375</a><a href='#L3376' id='L3376'>3376</a><a href='#L3377' id='L3377'>3377</a><a href='#L3378' id='L3378'>3378</a><a href='#L3379' id='L3379'>3379</a><a href='#L3380' id='L3380'>3380</a><a href='#L3381' id='L3381'>3381</a><a href='#L3382' id='L3382'>3382</a><a href='#L3383' id='L3383'>3383</a><a href='#L3384' id='L3384'>3384</a><a href='#L3385' id='L3385'>3385</a><a href='#L3386' id='L3386'>3386</a><a href='#L3387' id='L3387'>3387</a><a href='#L3388' id='L3388'>3388</a><a href='#L3389' id='L3389'>3389</a><a href='#L3390' id='L3390'>3390</a><a href='#L3391' id='L3391'>3391</a><a href='#L3392' id='L3392'>3392</a><a href='#L3393' id='L3393'>3393</a><a href='#L3394' id='L3394'>3394</a><a href='#L3395' id='L3395'>3395</a><a href='#L3396' id='L3396'>3396</a><a href='#L3397' id='L3397'>3397</a><a href='#L3398' id='L3398'>3398</a><a href='#L3399' id='L3399'>3399</a><a href='#L3400' id='L3400'>3400</a><a href='#L3401' id='L3401'>3401</a><a href='#L3402' id='L3402'>3402</a><a href='#L3403' id='L3403'>3403</a><a href='#L3404' id='L3404'>3404</a><a href='#L3405' id='L3405'>3405</a><a href='#L3406' id='L3406'>3406</a><a href='#L3407' id='L3407'>3407</a><a href='#L3408' id='L3408'>3408</a><a href='#L3409' id='L3409'>3409</a><a href='#L3410' id='L3410'>3410</a><a href='#L3411' id='L3411'>3411</a><a href='#L3412' id='L3412'>3412</a><a href='#L3413' id='L3413'>3413</a><a href='#L3414' id='L3414'>3414</a><a href='#L3415' id='L3415'>3415</a><a href='#L3416' id='L3416'>3416</a><a href='#L3417' id='L3417'>3417</a><a href='#L3418' id='L3418'>3418</a><a href='#L3419' id='L3419'>3419</a><a href='#L3420' id='L3420'>3420</a><a href='#L3421' id='L3421'>3421</a><a href='#L3422' id='L3422'>3422</a><a href='#L3423' id='L3423'>3423</a><a href='#L3424' id='L3424'>3424</a><a href='#L3425' id='L3425'>3425</a><a href='#L3426' id='L3426'>3426</a><a href='#L3427' id='L3427'>3427</a><a href='#L3428' id='L3428'>3428</a><a href='#L3429' id='L3429'>3429</a><a href='#L3430' id='L3430'>3430</a><a href='#L3431' id='L3431'>3431</a><a href='#L3432' id='L3432'>3432</a><a href='#L3433' id='L3433'>3433</a><a href='#L3434' id='L3434'>3434</a><a href='#L3435' id='L3435'>3435</a><a href='#L3436' id='L3436'>3436</a><a href='#L3437' id='L3437'>3437</a><a href='#L3438' id='L3438'>3438</a><a href='#L3439' id='L3439'>3439</a><a href='#L3440' id='L3440'>3440</a><a href='#L3441' id='L3441'>3441</a><a href='#L3442' id='L3442'>3442</a><a href='#L3443' id='L3443'>3443</a><a href='#L3444' id='L3444'>3444</a><a href='#L3445' id='L3445'>3445</a><a href='#L3446' id='L3446'>3446</a><a href='#L3447' id='L3447'>3447</a><a href='#L3448' id='L3448'>3448</a><a href='#L3449' id='L3449'>3449</a><a href='#L3450' id='L3450'>3450</a><a href='#L3451' id='L3451'>3451</a><a href='#L3452' id='L3452'>3452</a><a href='#L3453' id='L3453'>3453</a><a href='#L3454' id='L3454'>3454</a><a href='#L3455' id='L3455'>3455</a><a href='#L3456' id='L3456'>3456</a><a href='#L3457' id='L3457'>3457</a><a href='#L3458' id='L3458'>3458</a><a href='#L3459' id='L3459'>3459</a><a href='#L3460' id='L3460'>3460</a><a href='#L3461' id='L3461'>3461</a><a href='#L3462' id='L3462'>3462</a><a href='#L3463' id='L3463'>3463</a><a href='#L3464' id='L3464'>3464</a><a href='#L3465' id='L3465'>3465</a><a href='#L3466' id='L3466'>3466</a><a href='#L3467' id='L3467'>3467</a><a href='#L3468' id='L3468'>3468</a><a href='#L3469' id='L3469'>3469</a><a href='#L3470' id='L3470'>3470</a><a href='#L3471' id='L3471'>3471</a><a href='#L3472' id='L3472'>3472</a><a href='#L3473' id='L3473'>3473</a><a href='#L3474' id='L3474'>3474</a><a href='#L3475' id='L3475'>3475</a><a href='#L3476' id='L3476'>3476</a><a href='#L3477' id='L3477'>3477</a><a href='#L3478' id='L3478'>3478</a><a href='#L3479' id='L3479'>3479</a><a href='#L3480' id='L3480'>3480</a><a href='#L3481' id='L3481'>3481</a><a href='#L3482' id='L3482'>3482</a><a href='#L3483' id='L3483'>3483</a><a href='#L3484' id='L3484'>3484</a><a href='#L3485' id='L3485'>3485</a><a href='#L3486' id='L3486'>3486</a><a href='#L3487' id='L3487'>3487</a><a href='#L3488' id='L3488'>3488</a><a href='#L3489' id='L3489'>3489</a><a href='#L3490' id='L3490'>3490</a><a href='#L3491' id='L3491'>3491</a><a href='#L3492' id='L3492'>3492</a><a href='#L3493' id='L3493'>3493</a><a href='#L3494' id='L3494'>3494</a><a href='#L3495' id='L3495'>3495</a><a href='#L3496' id='L3496'>3496</a><a href='#L3497' id='L3497'>3497</a><a href='#L3498' id='L3498'>3498</a><a href='#L3499' id='L3499'>3499</a><a href='#L3500' id='L3500'>3500</a><a href='#L3501' id='L3501'>3501</a><a href='#L3502' id='L3502'>3502</a><a href='#L3503' id='L3503'>3503</a><a href='#L3504' id='L3504'>3504</a><a href='#L3505' id='L3505'>3505</a><a href='#L3506' id='L3506'>3506</a><a href='#L3507' id='L3507'>3507</a><a href='#L3508' id='L3508'>3508</a><a href='#L3509' id='L3509'>3509</a><a href='#L3510' id='L3510'>3510</a><a href='#L3511' id='L3511'>3511</a><a href='#L3512' id='L3512'>3512</a><a href='#L3513' id='L3513'>3513</a><a href='#L3514' id='L3514'>3514</a><a href='#L3515' id='L3515'>3515</a><a href='#L3516' id='L3516'>3516</a><a href='#L3517' id='L3517'>3517</a><a href='#L3518' id='L3518'>3518</a><a href='#L3519' id='L3519'>3519</a><a href='#L3520' id='L3520'>3520</a><a href='#L3521' id='L3521'>3521</a><a href='#L3522' id='L3522'>3522</a><a href='#L3523' id='L3523'>3523</a><a href='#L3524' id='L3524'>3524</a><a href='#L3525' id='L3525'>3525</a><a href='#L3526' id='L3526'>3526</a><a href='#L3527' id='L3527'>3527</a><a href='#L3528' id='L3528'>3528</a><a href='#L3529' id='L3529'>3529</a><a href='#L3530' id='L3530'>3530</a><a href='#L3531' id='L3531'>3531</a><a href='#L3532' id='L3532'>3532</a><a href='#L3533' id='L3533'>3533</a><a href='#L3534' id='L3534'>3534</a><a href='#L3535' id='L3535'>3535</a><a href='#L3536' id='L3536'>3536</a><a href='#L3537' id='L3537'>3537</a><a href='#L3538' id='L3538'>3538</a><a href='#L3539' id='L3539'>3539</a><a href='#L3540' id='L3540'>3540</a><a href='#L3541' id='L3541'>3541</a><a href='#L3542' id='L3542'>3542</a><a href='#L3543' id='L3543'>3543</a><a href='#L3544' id='L3544'>3544</a><a href='#L3545' id='L3545'>3545</a><a href='#L3546' id='L3546'>3546</a><a href='#L3547' id='L3547'>3547</a><a href='#L3548' id='L3548'>3548</a><a href='#L3549' id='L3549'>3549</a><a href='#L3550' id='L3550'>3550</a><a href='#L3551' id='L3551'>3551</a><a href='#L3552' id='L3552'>3552</a><a href='#L3553' id='L3553'>3553</a><a href='#L3554' id='L3554'>3554</a><a href='#L3555' id='L3555'>3555</a><a href='#L3556' id='L3556'>3556</a><a href='#L3557' id='L3557'>3557</a><a href='#L3558' id='L3558'>3558</a><a href='#L3559' id='L3559'>3559</a><a href='#L3560' id='L3560'>3560</a><a href='#L3561' id='L3561'>3561</a><a href='#L3562' id='L3562'>3562</a><a href='#L3563' id='L3563'>3563</a><a href='#L3564' id='L3564'>3564</a><a href='#L3565' id='L3565'>3565</a><a href='#L3566' id='L3566'>3566</a><a href='#L3567' id='L3567'>3567</a><a href='#L3568' id='L3568'>3568</a><a href='#L3569' id='L3569'>3569</a><a href='#L3570' id='L3570'>3570</a><a href='#L3571' id='L3571'>3571</a><a href='#L3572' id='L3572'>3572</a><a href='#L3573' id='L3573'>3573</a><a href='#L3574' id='L3574'>3574</a><a href='#L3575' id='L3575'>3575</a><a href='#L3576' id='L3576'>3576</a><a href='#L3577' id='L3577'>3577</a><a href='#L3578' id='L3578'>3578</a><a href='#L3579' id='L3579'>3579</a><a href='#L3580' id='L3580'>3580</a><a href='#L3581' id='L3581'>3581</a><a href='#L3582' id='L3582'>3582</a><a href='#L3583' id='L3583'>3583</a><a href='#L3584' id='L3584'>3584</a><a href='#L3585' id='L3585'>3585</a><a href='#L3586' id='L3586'>3586</a><a href='#L3587' id='L3587'>3587</a><a href='#L3588' id='L3588'>3588</a><a href='#L3589' id='L3589'>3589</a><a href='#L3590' id='L3590'>3590</a><a href='#L3591' id='L3591'>3591</a><a href='#L3592' id='L3592'>3592</a><a href='#L3593' id='L3593'>3593</a><a href='#L3594' id='L3594'>3594</a><a href='#L3595' id='L3595'>3595</a><a href='#L3596' id='L3596'>3596</a><a href='#L3597' id='L3597'>3597</a><a href='#L3598' id='L3598'>3598</a><a href='#L3599' id='L3599'>3599</a><a href='#L3600' id='L3600'>3600</a><a href='#L3601' id='L3601'>3601</a><a href='#L3602' id='L3602'>3602</a><a href='#L3603' id='L3603'>3603</a><a href='#L3604' id='L3604'>3604</a><a href='#L3605' id='L3605'>3605</a><a href='#L3606' id='L3606'>3606</a><a href='#L3607' id='L3607'>3607</a><a href='#L3608' id='L3608'>3608</a><a href='#L3609' id='L3609'>3609</a><a href='#L3610' id='L3610'>3610</a><a href='#L3611' id='L3611'>3611</a><a href='#L3612' id='L3612'>3612</a><a href='#L3613' id='L3613'>3613</a><a href='#L3614' id='L3614'>3614</a><a href='#L3615' id='L3615'>3615</a><a href='#L3616' id='L3616'>3616</a><a href='#L3617' id='L3617'>3617</a><a href='#L3618' id='L3618'>3618</a><a href='#L3619' id='L3619'>3619</a><a href='#L3620' id='L3620'>3620</a><a href='#L3621' id='L3621'>3621</a><a href='#L3622' id='L3622'>3622</a><a href='#L3623' id='L3623'>3623</a><a href='#L3624' id='L3624'>3624</a><a href='#L3625' id='L3625'>3625</a><a href='#L3626' id='L3626'>3626</a><a href='#L3627' id='L3627'>3627</a><a href='#L3628' id='L3628'>3628</a><a href='#L3629' id='L3629'>3629</a><a href='#L3630' id='L3630'>3630</a><a href='#L3631' id='L3631'>3631</a><a href='#L3632' id='L3632'>3632</a><a href='#L3633' id='L3633'>3633</a><a href='#L3634' id='L3634'>3634</a><a href='#L3635' id='L3635'>3635</a><a href='#L3636' id='L3636'>3636</a><a href='#L3637' id='L3637'>3637</a><a href='#L3638' id='L3638'>3638</a><a href='#L3639' id='L3639'>3639</a><a href='#L3640' id='L3640'>3640</a><a href='#L3641' id='L3641'>3641</a><a href='#L3642' id='L3642'>3642</a><a href='#L3643' id='L3643'>3643</a><a href='#L3644' id='L3644'>3644</a><a href='#L3645' id='L3645'>3645</a><a href='#L3646' id='L3646'>3646</a><a href='#L3647' id='L3647'>3647</a><a href='#L3648' id='L3648'>3648</a><a href='#L3649' id='L3649'>3649</a><a href='#L3650' id='L3650'>3650</a><a href='#L3651' id='L3651'>3651</a><a href='#L3652' id='L3652'>3652</a><a href='#L3653' id='L3653'>3653</a><a href='#L3654' id='L3654'>3654</a><a href='#L3655' id='L3655'>3655</a><a href='#L3656' id='L3656'>3656</a><a href='#L3657' id='L3657'>3657</a><a href='#L3658' id='L3658'>3658</a><a href='#L3659' id='L3659'>3659</a><a href='#L3660' id='L3660'>3660</a><a href='#L3661' id='L3661'>3661</a><a href='#L3662' id='L3662'>3662</a><a href='#L3663' id='L3663'>3663</a><a href='#L3664' id='L3664'>3664</a><a href='#L3665' id='L3665'>3665</a><a href='#L3666' id='L3666'>3666</a><a href='#L3667' id='L3667'>3667</a><a href='#L3668' id='L3668'>3668</a><a href='#L3669' id='L3669'>3669</a><a href='#L3670' id='L3670'>3670</a><a href='#L3671' id='L3671'>3671</a><a href='#L3672' id='L3672'>3672</a><a href='#L3673' id='L3673'>3673</a><a href='#L3674' id='L3674'>3674</a><a href='#L3675' id='L3675'>3675</a><a href='#L3676' id='L3676'>3676</a><a href='#L3677' id='L3677'>3677</a><a href='#L3678' id='L3678'>3678</a><a href='#L3679' id='L3679'>3679</a><a href='#L3680' id='L3680'>3680</a><a href='#L3681' id='L3681'>3681</a><a href='#L3682' id='L3682'>3682</a><a href='#L3683' id='L3683'>3683</a><a href='#L3684' id='L3684'>3684</a><a href='#L3685' id='L3685'>3685</a><a href='#L3686' id='L3686'>3686</a><a href='#L3687' id='L3687'>3687</a><a href='#L3688' id='L3688'>3688</a><a href='#L3689' id='L3689'>3689</a><a href='#L3690' id='L3690'>3690</a><a href='#L3691' id='L3691'>3691</a><a href='#L3692' id='L3692'>3692</a><a href='#L3693' id='L3693'>3693</a><a href='#L3694' id='L3694'>3694</a><a href='#L3695' id='L3695'>3695</a><a href='#L3696' id='L3696'>3696</a><a href='#L3697' id='L3697'>3697</a><a href='#L3698' id='L3698'>3698</a><a href='#L3699' id='L3699'>3699</a><a href='#L3700' id='L3700'>3700</a><a href='#L3701' id='L3701'>3701</a><a href='#L3702' id='L3702'>3702</a><a href='#L3703' id='L3703'>3703</a><a href='#L3704' id='L3704'>3704</a><a href='#L3705' id='L3705'>3705</a><a href='#L3706' id='L3706'>3706</a><a href='#L3707' id='L3707'>3707</a><a href='#L3708' id='L3708'>3708</a><a href='#L3709' id='L3709'>3709</a><a href='#L3710' id='L3710'>3710</a><a href='#L3711' id='L3711'>3711</a><a href='#L3712' id='L3712'>3712</a><a href='#L3713' id='L3713'>3713</a><a href='#L3714' id='L3714'>3714</a><a href='#L3715' id='L3715'>3715</a><a href='#L3716' id='L3716'>3716</a><a href='#L3717' id='L3717'>3717</a><a href='#L3718' id='L3718'>3718</a><a href='#L3719' id='L3719'>3719</a><a href='#L3720' id='L3720'>3720</a><a href='#L3721' id='L3721'>3721</a><a href='#L3722' id='L3722'>3722</a><a href='#L3723' id='L3723'>3723</a><a href='#L3724' id='L3724'>3724</a><a href='#L3725' id='L3725'>3725</a><a href='#L3726' id='L3726'>3726</a><a href='#L3727' id='L3727'>3727</a><a href='#L3728' id='L3728'>3728</a><a href='#L3729' id='L3729'>3729</a><a href='#L3730' id='L3730'>3730</a><a href='#L3731' id='L3731'>3731</a><a href='#L3732' id='L3732'>3732</a><a href='#L3733' id='L3733'>3733</a><a href='#L3734' id='L3734'>3734</a><a href='#L3735' id='L3735'>3735</a><a href='#L3736' id='L3736'>3736</a><a href='#L3737' id='L3737'>3737</a><a href='#L3738' id='L3738'>3738</a><a href='#L3739' id='L3739'>3739</a><a href='#L3740' id='L3740'>3740</a><a href='#L3741' id='L3741'>3741</a><a href='#L3742' id='L3742'>3742</a><a href='#L3743' id='L3743'>3743</a><a href='#L3744' id='L3744'>3744</a><a href='#L3745' id='L3745'>3745</a><a href='#L3746' id='L3746'>3746</a><a href='#L3747' id='L3747'>3747</a><a href='#L3748' id='L3748'>3748</a><a href='#L3749' id='L3749'>3749</a><a href='#L3750' id='L3750'>3750</a><a href='#L3751' id='L3751'>3751</a><a href='#L3752' id='L3752'>3752</a><a href='#L3753' id='L3753'>3753</a><a href='#L3754' id='L3754'>3754</a><a href='#L3755' id='L3755'>3755</a><a href='#L3756' id='L3756'>3756</a><a href='#L3757' id='L3757'>3757</a><a href='#L3758' id='L3758'>3758</a><a href='#L3759' id='L3759'>3759</a><a href='#L3760' id='L3760'>3760</a><a href='#L3761' id='L3761'>3761</a><a href='#L3762' id='L3762'>3762</a><a href='#L3763' id='L3763'>3763</a><a href='#L3764' id='L3764'>3764</a><a href='#L3765' id='L3765'>3765</a><a href='#L3766' id='L3766'>3766</a><a href='#L3767' id='L3767'>3767</a><a href='#L3768' id='L3768'>3768</a><a href='#L3769' id='L3769'>3769</a><a href='#L3770' id='L3770'>3770</a><a href='#L3771' id='L3771'>3771</a><a href='#L3772' id='L3772'>3772</a><a href='#L3773' id='L3773'>3773</a><a href='#L3774' id='L3774'>3774</a><a href='#L3775' id='L3775'>3775</a><a href='#L3776' id='L3776'>3776</a><a href='#L3777' id='L3777'>3777</a><a href='#L3778' id='L3778'>3778</a><a href='#L3779' id='L3779'>3779</a><a href='#L3780' id='L3780'>3780</a><a href='#L3781' id='L3781'>3781</a><a href='#L3782' id='L3782'>3782</a><a href='#L3783' id='L3783'>3783</a><a href='#L3784' id='L3784'>3784</a><a href='#L3785' id='L3785'>3785</a><a href='#L3786' id='L3786'>3786</a><a href='#L3787' id='L3787'>3787</a><a href='#L3788' id='L3788'>3788</a><a href='#L3789' id='L3789'>3789</a><a href='#L3790' id='L3790'>3790</a><a href='#L3791' id='L3791'>3791</a><a href='#L3792' id='L3792'>3792</a><a href='#L3793' id='L3793'>3793</a><a href='#L3794' id='L3794'>3794</a><a href='#L3795' id='L3795'>3795</a><a href='#L3796' id='L3796'>3796</a><a href='#L3797' id='L3797'>3797</a><a href='#L3798' id='L3798'>3798</a><a href='#L3799' id='L3799'>3799</a><a href='#L3800' id='L3800'>3800</a><a href='#L3801' id='L3801'>3801</a><a href='#L3802' id='L3802'>3802</a><a href='#L3803' id='L3803'>3803</a><a href='#L3804' id='L3804'>3804</a><a href='#L3805' id='L3805'>3805</a><a href='#L3806' id='L3806'>3806</a><a href='#L3807' id='L3807'>3807</a><a href='#L3808' id='L3808'>3808</a><a href='#L3809' id='L3809'>3809</a><a href='#L3810' id='L3810'>3810</a><a href='#L3811' id='L3811'>3811</a><a href='#L3812' id='L3812'>3812</a><a href='#L3813' id='L3813'>3813</a><a href='#L3814' id='L3814'>3814</a><a href='#L3815' id='L3815'>3815</a><a href='#L3816' id='L3816'>3816</a><a href='#L3817' id='L3817'>3817</a><a href='#L3818' id='L3818'>3818</a><a href='#L3819' id='L3819'>3819</a><a href='#L3820' id='L3820'>3820</a><a href='#L3821' id='L3821'>3821</a><a href='#L3822' id='L3822'>3822</a></div><div class="highlight markdown-code-block"><pre class=""><div class='line' id='LC1'><span class="cp">&lt;?xml version="1.0" encoding="UTF-8" ?&gt;</span>&#x000A;</div><div class='line' id='LC2'><span class="nt">&lt;xsl:stylesheet</span> <span class="na">version=</span><span class="s">"1.0"</span> <span class="na">xmlns:xsl=</span><span class="s">"http://www.w3.org/1999/XSL/Transform"</span> <span class="na">xmlns:mml=</span><span class="s">"http://www.w3.org/1998/Math/MathML"</span>&#x000A;</div><div class='line' id='LC3'>	<span class="na">xmlns:m=</span><span class="s">"http://schemas.openxmlformats.org/officeDocument/2006/math"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC4'>  <span class="nt">&lt;xsl:output</span> <span class="na">method=</span><span class="s">"xml"</span> <span class="na">encoding=</span><span class="s">"UTF-8"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC5'>&#x000A;</div><div class='line' id='LC6'>&#x000A;</div><div class='line' id='LC7'>  <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"StrUCAlphabet"</span><span class="nt">&gt;</span>ABCDEFGHIJKLMNOPQRSTUVWXYZ<span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC8'>  <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"StrLCAlphabet"</span><span class="nt">&gt;</span>abcdefghijklmnopqrstuvwxyz<span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC9'>&#x000A;</div><div class='line' id='LC10'>  <span class="c">&lt;!-- %%Template: match *</span>&#x000A;</div><div class='line' id='LC11'>&#x000A;</div><div class='line' id='LC12'><span class="c">		The catch all template, just passes through </span>&#x000A;</div><div class='line' id='LC13'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC14'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"*"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC15'>    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC16'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC17'>&#x000A;</div><div class='line' id='LC18'>  <span class="c">&lt;!-- %%Template: match *</span>&#x000A;</div><div class='line' id='LC19'>&#x000A;</div><div class='line' id='LC20'><span class="c">		Another catch all template, just passes through </span>&#x000A;</div><div class='line' id='LC21'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC22'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"/"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC23'>    <span class="nt">&lt;m:oMath&gt;</span>&#x000A;</div><div class='line' id='LC24'>      <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC25'>    <span class="nt">&lt;/m:oMath&gt;</span>&#x000A;</div><div class='line' id='LC26'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC27'>&#x000A;</div><div class='line' id='LC28'>  <span class="c">&lt;!-- %%Template: SReplace</span>&#x000A;</div><div class='line' id='LC29'>&#x000A;</div><div class='line' id='LC30'><span class="c">		Replace all occurences of sOrig in sInput with sReplacement</span>&#x000A;</div><div class='line' id='LC31'><span class="c">		and return the resulting string. --&gt;</span>&#x000A;</div><div class='line' id='LC32'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"SReplace"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC33'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"sInput"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC34'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"sOrig"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC35'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"sReplacement"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC36'>&#x000A;</div><div class='line' id='LC37'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC38'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"not(contains($sInput, $sOrig))"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC39'>        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$sInput"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC40'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC41'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC42'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sBefore"</span> <span class="na">select=</span><span class="s">"substring-before($sInput, $sOrig)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC43'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sAfter"</span> <span class="na">select=</span><span class="s">"substring-after($sInput, $sOrig)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC44'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sAfterProcessed"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC45'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"SReplace"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC46'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sInput"</span> <span class="na">select=</span><span class="s">"$sAfter"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC47'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sOrig"</span> <span class="na">select=</span><span class="s">"$sOrig"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC48'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sReplacement"</span> <span class="na">select=</span><span class="s">"$sReplacement"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC49'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC50'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC51'>&#x000A;</div><div class='line' id='LC52'>        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"concat($sBefore, concat($sReplacement, $sAfterProcessed))"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC53'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC54'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC55'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC56'>&#x000A;</div><div class='line' id='LC57'>  <span class="c">&lt;!-- %%Template: OutputText</span>&#x000A;</div><div class='line' id='LC58'>&#x000A;</div><div class='line' id='LC59'><span class="c">		Post processing on the string given and otherwise do</span>&#x000A;</div><div class='line' id='LC60'><span class="c">		a xsl:value-of on it --&gt;</span>&#x000A;</div><div class='line' id='LC61'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"OutputText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC62'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"sInput"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC63'>&#x000A;</div><div class='line' id='LC64'>    <span class="c">&lt;!-- Add local variable as you add new post processing tasks --&gt;</span>&#x000A;</div><div class='line' id='LC65'>&#x000A;</div><div class='line' id='LC66'>    <span class="c">&lt;!-- 1. Remove any unwanted characters --&gt;</span>&#x000A;</div><div class='line' id='LC67'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sCharStrip"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC68'>      <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($sInput, '&amp;#x2062;&amp;#x200B;', '')"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC69'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC70'>&#x000A;</div><div class='line' id='LC71'>    <span class="c">&lt;!-- 2. Replace any characters as needed --&gt;</span>&#x000A;</div><div class='line' id='LC72'>    <span class="c">&lt;!--	Replace &amp;#x2A75; &lt;-&gt; ==			 --&gt;</span>&#x000A;</div><div class='line' id='LC73'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sCharReplace"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC74'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"SReplace"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC75'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sInput"</span> <span class="na">select=</span><span class="s">"$sCharStrip"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC76'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sOrig"</span> <span class="na">select=</span><span class="s">"'&amp;#x2A75;'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC77'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sReplacement"</span> <span class="na">select=</span><span class="s">"'=='"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC78'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC79'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC80'>&#x000A;</div><div class='line' id='LC81'>    <span class="c">&lt;!-- Replace &amp;#xa0; (non-breaking space) with ' ' --&gt;</span>&#x000A;</div><div class='line' id='LC82'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sCharReplaceFinal"</span> <span class="na">select=</span><span class="s">"translate($sCharReplace, '&amp;#xa0;', ' ')"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC83'>&#x000A;</div><div class='line' id='LC84'>    <span class="c">&lt;!-- Finally, return the last value --&gt;</span>&#x000A;</div><div class='line' id='LC85'>    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$sCharReplaceFinal"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC86'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC87'>&#x000A;</div><div class='line' id='LC88'>&#x000A;</div><div class='line' id='LC89'>  <span class="c">&lt;!-- Template that determines whether or the given node </span>&#x000A;</div><div class='line' id='LC90'><span class="c">	     ndCur is a token element that doesn't have an mglyph as </span>&#x000A;</div><div class='line' id='LC91'><span class="c">			 a child.</span>&#x000A;</div><div class='line' id='LC92'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC93'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FNonGlyphToken"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC94'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC95'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC96'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/self::mml:mi[not(child::mml:mglyph)] | </span>&#x000A;</div><div class='line' id='LC97'><span class="s">	                     $ndCur/self::mml:mn[not(child::mml:mglyph)] | </span>&#x000A;</div><div class='line' id='LC98'><span class="s">	                     $ndCur/self::mml:mo[not(child::mml:mglyph)] | </span>&#x000A;</div><div class='line' id='LC99'><span class="s">	                     $ndCur/self::mml:ms[not(child::mml:mglyph)] |</span>&#x000A;</div><div class='line' id='LC100'><span class="s">                       $ndCur/self::mml:mtext[not(child::mml:mglyph)]"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC101'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC102'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC103'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC104'>&#x000A;</div><div class='line' id='LC105'>&#x000A;</div><div class='line' id='LC106'>  <span class="c">&lt;!-- Template used to determine if the current token element (ndCur) is the beginning of a run. </span>&#x000A;</div><div class='line' id='LC107'><span class="c">			 A token element is the beginning of if:</span>&#x000A;</div><div class='line' id='LC108'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC109'><span class="c">			 the count of preceding elements is 0 </span>&#x000A;</div><div class='line' id='LC110'><span class="c">			 or </span>&#x000A;</div><div class='line' id='LC111'><span class="c">			 the directory preceding element is not a non-glyph token.</span>&#x000A;</div><div class='line' id='LC112'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC113'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FStartOfRun"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC114'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC115'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fPrecSibNonGlyphToken"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC116'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FNonGlyphToken"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC117'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndCur/preceding-sibling::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC118'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC119'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC120'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC121'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"count($ndCur/preceding-sibling::*)=0 </span>&#x000A;</div><div class='line' id='LC122'><span class="s">											or $fPrecSibNonGlyphToken=0"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC123'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC124'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC125'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC126'>&#x000A;</div><div class='line' id='LC127'>  <span class="c">&lt;!-- Template that determines if ndCur is the argument of an nary expression. </span>&#x000A;</div><div class='line' id='LC128'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC129'><span class="c">			 ndCur is the argument of an nary expression if:</span>&#x000A;</div><div class='line' id='LC130'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC131'><span class="c">			 1.  The preceding sibling is one of the following:  munder, mover, msub, msup, munder, msubsup, munderover</span>&#x000A;</div><div class='line' id='LC132'><span class="c">			 and</span>&#x000A;</div><div class='line' id='LC133'><span class="c">			 2.  The preceding sibling's child is an nary char as specified by the template "isNary"</span>&#x000A;</div><div class='line' id='LC134'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC135'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FIsNaryArgument"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC136'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC137'>&#x000A;</div><div class='line' id='LC138'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC139'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"isNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC140'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndCur/preceding-sibling::*[1]/child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC141'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC142'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC143'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC144'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"preceding-sibling::*[1][self::mml:munder or self::mml:mover or self::mml:munderover or</span>&#x000A;</div><div class='line' id='LC145'><span class="s">                                                    self::mml:msub or self::mml:msup or self::mml:msubsup]</span>&#x000A;</div><div class='line' id='LC146'><span class="s">							      and $fNary='true'"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC147'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC148'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC149'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC150'>&#x000A;</div><div class='line' id='LC151'>  <span class="c">&lt;!-- %%Template: mml:mrow | mml:mstyle</span>&#x000A;</div><div class='line' id='LC152'>&#x000A;</div><div class='line' id='LC153'><span class="c">		 if this row is the next sibling of an n-ary (i.e. any of </span>&#x000A;</div><div class='line' id='LC154'><span class="c">         mover, munder, munderover, msupsub, msup, or msub with </span>&#x000A;</div><div class='line' id='LC155'><span class="c">         the base being an n-ary operator) then ignore this. Otherwise</span>&#x000A;</div><div class='line' id='LC156'><span class="c">         pass through --&gt;</span>&#x000A;</div><div class='line' id='LC157'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mrow|mml:mstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC158'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNaryArgument"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC159'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsNaryArgument"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC160'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC161'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC162'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC163'>    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fNaryArgument=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC164'>      <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fLinearFrac"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC165'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FLinearFrac"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC166'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC167'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC168'>      <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC169'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC170'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fLinearFrac=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC171'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"MakeLinearFraction"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC172'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC173'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC174'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC175'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC176'>          <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fFunc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC177'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsFunc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC178'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC179'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC180'>          <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC181'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC182'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fFunc=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC183'>              <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"WriteFunc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC184'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC185'>              <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC186'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC187'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC188'>              <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC189'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC190'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC191'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC192'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC193'>    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC194'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC195'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mi[not(child::mml:mglyph)] | </span>&#x000A;</div><div class='line' id='LC196'><span class="s">	                     mml:mn[not(child::mml:mglyph)] | </span>&#x000A;</div><div class='line' id='LC197'><span class="s">	                     mml:mo[not(child::mml:mglyph)] | </span>&#x000A;</div><div class='line' id='LC198'><span class="s">	                     mml:ms[not(child::mml:mglyph)] |</span>&#x000A;</div><div class='line' id='LC199'><span class="s">                       mml:mtext[not(child::mml:mglyph)]"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC200'>&#x000A;</div><div class='line' id='LC201'>    <span class="c">&lt;!-- tokens with mglyphs as children are tranformed</span>&#x000A;</div><div class='line' id='LC202'><span class="c">			 in a different manner than "normal" token elements.  </span>&#x000A;</div><div class='line' id='LC203'><span class="c">			 Where normal token elements are token elements that</span>&#x000A;</div><div class='line' id='LC204'><span class="c">			 contain only text --&gt;</span>&#x000A;</div><div class='line' id='LC205'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fStartOfRun"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC206'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FStartOfRun"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC207'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC208'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC209'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC210'>&#x000A;</div><div class='line' id='LC211'>    <span class="c">&lt;!--In MathML, successive characters that are all part of one string are sometimes listed as separate </span>&#x000A;</div><div class='line' id='LC212'><span class="c">			tags based on their type (identifier (mi), name (mn), operator (mo), quoted (ms), literal text (mtext)), </span>&#x000A;</div><div class='line' id='LC213'><span class="c">			where said tags act to link one another into one logical run.  In order to wrap the text of successive mi's, </span>&#x000A;</div><div class='line' id='LC214'><span class="c">			mn's, and mo's into one m:t, we need to denote where a run begins.  The beginning of a run is the first mi, mn, </span>&#x000A;</div><div class='line' id='LC215'><span class="c">			or mo whose immediately preceding sibling either doesn't exist or is something other than a "normal" mi, mn, mo, </span>&#x000A;</div><div class='line' id='LC216'><span class="c">			ms, or mtext tag--&gt;</span>&#x000A;</div><div class='line' id='LC217'>&#x000A;</div><div class='line' id='LC218'>    <span class="c">&lt;!-- If this mi/mo/mn/ms . . . is part the numerator or denominator of a linear fraction, then don't collect. --&gt;</span>&#x000A;</div><div class='line' id='LC219'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fLinearFracParent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC220'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FLinearFrac"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC221'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"parent::*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC222'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC223'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC224'>    <span class="c">&lt;!-- If this mi/mo/mn/ms . . . is part of the name of a function, then don't collect. --&gt;</span>&#x000A;</div><div class='line' id='LC225'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fFunctionName"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC226'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsFunc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC227'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"parent::*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC228'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC229'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC230'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fShouldCollect"</span>&#x000A;</div><div class='line' id='LC231'>					<span class="na">select=</span><span class="s">"($fLinearFracParent=0 and $fFunctionName=0) and (parent::mml:mrow or parent::mml:mstyle or </span>&#x000A;</div><div class='line' id='LC232'><span class="s">					parent::mml:msqrt or parent::mml:menclose or</span>&#x000A;</div><div class='line' id='LC233'><span class="s">					parent::mml:math or parent::mml:mphantom or </span>&#x000A;</div><div class='line' id='LC234'><span class="s">					parent::mml:mtd or parent::mml:maction)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC235'>&#x000A;</div><div class='line' id='LC236'>    <span class="c">&lt;!--In MathML, the meaning of the different parts that make up mathematical structures, such as a fraction </span>&#x000A;</div><div class='line' id='LC237'><span class="c">			having a numerator and a denominator, is determined by the relative order of those different parts.  </span>&#x000A;</div><div class='line' id='LC238'><span class="c">			For instance, In a fraction, the numerator is the first child and the denominator is the second child.  </span>&#x000A;</div><div class='line' id='LC239'><span class="c">			To allow for more complex structures, MathML allows one to link a group of mi, mn, and mo's together </span>&#x000A;</div><div class='line' id='LC240'><span class="c">			using the mrow, or mstyle tags.  The mi, mn, and mo's found within any of the above tags are considered </span>&#x000A;</div><div class='line' id='LC241'><span class="c">			one run.  Therefore, if the parent of any mi, mn, or mo is found to be an mrow or mstyle, then the contiguous </span>&#x000A;</div><div class='line' id='LC242'><span class="c">			mi, mn, and mo's will be considered one run.--&gt;</span>&#x000A;</div><div class='line' id='LC243'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC244'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fShouldCollect"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC245'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC246'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fStartOfRun=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC247'>            <span class="c">&lt;!--If this is the beginning of the run, pass all run attributes to CreateRunWithSameProp.--&gt;</span>&#x000A;</div><div class='line' id='LC248'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateRunWithSameProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC249'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathbackground"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC250'>                <span class="c">&lt;!-- Look for the unqualified mathml attribute mathbackground.</span>&#x000A;</div><div class='line' id='LC251'><span class="c">										 Fall back to the qualified mathml attribute if necessary.</span>&#x000A;</div><div class='line' id='LC252'><span class="c">										 This priority of unqualified over qualified will be </span>&#x000A;</div><div class='line' id='LC253'><span class="c">										 followed throughout this xslt. --&gt;</span>&#x000A;</div><div class='line' id='LC254'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC255'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mathbackground"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC256'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mathbackground"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC257'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC258'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC259'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:mathbackground"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC260'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC261'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC262'>              <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC263'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathcolor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC264'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC265'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mathcolor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC266'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mathcolor"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC267'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC268'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC269'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:mathcolor"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC270'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC271'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC272'>              <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC273'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathvariant"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC274'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC275'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mathvariant"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC276'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mathvariant"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC277'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC278'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC279'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:mathvariant"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC280'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC281'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC282'>              <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC283'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"color"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC284'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC285'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@color"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC286'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@color"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC287'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC288'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC289'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:color"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC290'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC291'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC292'>              <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC293'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"font-family"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC294'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC295'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@font-family"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC296'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@font-family"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC297'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC298'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC299'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:font-family"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC300'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC301'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC302'>              <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC303'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC304'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC305'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@fontsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC306'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@fontsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC307'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC308'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC309'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:fontsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC310'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC311'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC312'>              <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC313'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC314'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC315'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@fontstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC316'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@fontstyle"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC317'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC318'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC319'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:fontstyle"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC320'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC321'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC322'>              <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC323'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontweight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC324'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC325'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@fontweight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC326'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@fontweight"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC327'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC328'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC329'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:fontweight"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC330'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC331'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC332'>              <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC333'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC334'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC335'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mathsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC336'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mathsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC337'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC338'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC339'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:mathsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC340'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC341'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC342'>              <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC343'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndTokenFirst"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC344'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC345'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC346'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC347'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC348'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC349'>        <span class="c">&lt;!--Only one element will be part of run--&gt;</span>&#x000A;</div><div class='line' id='LC350'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:r"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC351'>          <span class="c">&lt;!--Create Run Properties based on current node's attributes--&gt;</span>&#x000A;</div><div class='line' id='LC352'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateRunProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC353'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathvariant"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC354'>              <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC355'>                <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mathvariant"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC356'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mathvariant"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC357'>                <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC358'>                <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC359'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:mathvariant"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC360'>                <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC361'>              <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC362'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC363'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC364'>              <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC365'>                <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@fontstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC366'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@fontstyle"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC367'>                <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC368'>                <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC369'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:fontstyle"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC370'>                <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC371'>              <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC372'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC373'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontweight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC374'>              <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC375'>                <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@fontweight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC376'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@fontweight"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC377'>                <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC378'>                <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC379'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:fontweight"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC380'>                <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC381'>              <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC382'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC383'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathcolor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC384'>              <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC385'>                <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mathcolor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC386'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mathcolor"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC387'>                <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC388'>                <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC389'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:mathcolor"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC390'>                <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC391'>              <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC392'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC393'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC394'>              <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC395'>                <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mathsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC396'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mathsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC397'>                <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC398'>                <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC399'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:mathsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC400'>                <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC401'>              <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC402'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC403'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"color"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC404'>              <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC405'>                <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@color"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC406'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@color"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC407'>                <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC408'>                <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC409'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:color"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC410'>                <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC411'>              <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC412'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC413'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC414'>              <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC415'>                <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@fontsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC416'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@fontsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC417'>                <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC418'>                <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC419'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:fontsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC420'>                <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC421'>              <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC422'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC423'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC424'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fNor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC425'>              <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FNor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC426'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC427'>              <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC428'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC429'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC430'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:t"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC431'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC432'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sInput"</span> <span class="na">select=</span><span class="s">"normalize-space(.)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC433'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC434'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC435'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC436'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC437'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC438'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC439'>&#x000A;</div><div class='line' id='LC440'>  <span class="c">&lt;!-- %%Template: CreateRunWithSameProp</span>&#x000A;</div><div class='line' id='LC441'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC442'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CreateRunWithSameProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC443'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"mathbackground"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC444'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"mathcolor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC445'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC446'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"color"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC447'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"font-family"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC448'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fontsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC449'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC450'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC451'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"mathsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC452'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndTokenFirst"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC453'>&#x000A;</div><div class='line' id='LC454'>    <span class="c">&lt;!--Given mathcolor, color, mstyle's (ancestor) color, and precedence of </span>&#x000A;</div><div class='line' id='LC455'><span class="c">			said attributes, determine the actual color of the current run--&gt;</span>&#x000A;</div><div class='line' id='LC456'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sColorPropCur"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC457'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC458'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$mathcolor!=''"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC459'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$mathcolor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC460'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC461'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$color!=''"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC462'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$color"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC463'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC464'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/ancestor::mml:mstyle[@color][1]/@color!=''"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC465'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/ancestor::mml:mstyle[@color][1]/@color"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC466'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC467'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/ancestor::mml:mstyle[@mml:color][1]/@mml:color!=''"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC468'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/ancestor::mml:mstyle[@color][1]/@mml:color"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC469'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC470'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC471'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"''"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC472'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC473'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC474'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC475'>&#x000A;</div><div class='line' id='LC476'>    <span class="c">&lt;!--Given mathsize, and fontsize and precedence of said attributes, </span>&#x000A;</div><div class='line' id='LC477'><span class="c">			determine the actual font size of the current run--&gt;</span>&#x000A;</div><div class='line' id='LC478'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sSzCur"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC479'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC480'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$mathsize!=''"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC481'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$mathsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC482'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC483'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fontsize!=''"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC484'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$fontsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC485'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC486'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC487'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"''"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC488'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC489'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC490'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC491'>&#x000A;</div><div class='line' id='LC492'>    <span class="c">&lt;!--Given mathvariant, fontstyle, and fontweight, and precedence of </span>&#x000A;</div><div class='line' id='LC493'><span class="c">			the attributes, determine the actual font of the current run--&gt;</span>&#x000A;</div><div class='line' id='LC494'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sFontCur"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC495'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"GetFontCur"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC496'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="na">select=</span><span class="s">"$mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC497'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="na">select=</span><span class="s">"$fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC498'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="na">select=</span><span class="s">"$fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC499'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndTokenFirst"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC500'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC501'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC502'>&#x000A;</div><div class='line' id='LC503'>    <span class="c">&lt;!-- The omml equivalent structure for mml:mtext is an omml run with the run property m:nor (normal) set.</span>&#x000A;</div><div class='line' id='LC504'><span class="c">         Therefore, we can only collect mtexts with  other mtext elements.  Suppose the $ndTokenFirst is an </span>&#x000A;</div><div class='line' id='LC505'><span class="c">         mml:mtext, then if any of its following siblings are to be grouped, they must also be mml:text elements.  </span>&#x000A;</div><div class='line' id='LC506'><span class="c">         The inverse is also true, suppose the $ndTokenFirst isn't an mml:mtext, then if any of its following siblings </span>&#x000A;</div><div class='line' id='LC507'><span class="c">         are to be grouped with $ndTokenFirst, they can't be mml:mtext elements--&gt;</span>&#x000A;</div><div class='line' id='LC508'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNdTokenFirstIsMText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC509'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC510'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/self::mml:mtext"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC511'>        <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC512'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC513'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC514'>&#x000A;</div><div class='line' id='LC515'>    <span class="c">&lt;!--In order to determine the length of the run, we will find the number of nodes before the inital node in the run and</span>&#x000A;</div><div class='line' id='LC516'><span class="c">			the number of nodes before the first node that DOES NOT belong to the current run.  The number of nodes that will</span>&#x000A;</div><div class='line' id='LC517'><span class="c">			be printed is One Less than the difference between the latter and the former--&gt;</span>&#x000A;</div><div class='line' id='LC518'>&#x000A;</div><div class='line' id='LC519'>    <span class="c">&lt;!--Find index of current node--&gt;</span>&#x000A;</div><div class='line' id='LC520'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"nndBeforeFirst"</span> <span class="na">select=</span><span class="s">"count($ndTokenFirst/preceding-sibling::*)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC521'>&#x000A;</div><div class='line' id='LC522'>    <span class="c">&lt;!--Find index of next change in run properties.</span>&#x000A;</div><div class='line' id='LC523'><span class="c">		</span>&#x000A;</div><div class='line' id='LC524'><span class="c">		    The basic idea is that we want to find the position of the last node in the longest </span>&#x000A;</div><div class='line' id='LC525'><span class="c">				sequence of nodes, starting from ndTokenFirst, that can be grouped into a run.  For</span>&#x000A;</div><div class='line' id='LC526'><span class="c">				example, nodes A and B can be grouped together into the same run iff they have the same </span>&#x000A;</div><div class='line' id='LC527'><span class="c">				props.</span>&#x000A;</div><div class='line' id='LC528'><span class="c">				</span>&#x000A;</div><div class='line' id='LC529'><span class="c">				To accomplish this grouping, we want to find the next sibling to ndTokenFirst that shouldn't be </span>&#x000A;</div><div class='line' id='LC530'><span class="c">				included in the run of text.  We do this by counting the number of elements that precede the first</span>&#x000A;</div><div class='line' id='LC531'><span class="c">				such element that doesn't belong.  The xpath that accomplishes this is below.</span>&#x000A;</div><div class='line' id='LC532'><span class="c">				    </span>&#x000A;</div><div class='line' id='LC533'><span class="c">						Count the number of siblings the precede the first element after ndTokenFirst that shouldn't belong.</span>&#x000A;</div><div class='line' id='LC534'><span class="c">						count($ndTokenFirst/following-sibling::*[ . . . ][1]/preceding-sibling::*)</span>&#x000A;</div><div class='line' id='LC535'><span class="c">						</span>&#x000A;</div><div class='line' id='LC536'><span class="c">				Now, the hard part to this is what is represented by the '. . .' above.  This conditional expression is </span>&#x000A;</div><div class='line' id='LC537'><span class="c">				defining what elements *don't* belong to the current run.  The conditions are as follows:</span>&#x000A;</div><div class='line' id='LC538'><span class="c">				</span>&#x000A;</div><div class='line' id='LC539'><span class="c">				The element is not a token element (mi, mn, mo, ms, or mtext)</span>&#x000A;</div><div class='line' id='LC540'><span class="c">				</span>&#x000A;</div><div class='line' id='LC541'><span class="c">				or</span>&#x000A;</div><div class='line' id='LC542'><span class="c">				</span>&#x000A;</div><div class='line' id='LC543'><span class="c">				The token element contains a glyph child (this is handled separately).</span>&#x000A;</div><div class='line' id='LC544'><span class="c">				</span>&#x000A;</div><div class='line' id='LC545'><span class="c">				or</span>&#x000A;</div><div class='line' id='LC546'><span class="c">				</span>&#x000A;</div><div class='line' id='LC547'><span class="c">				The token is an mtext and the run didn't start with an mtext, or the token isn't an mtext and the run started </span>&#x000A;</div><div class='line' id='LC548'><span class="c">				with an mtext.  We do this check because mtext transforms into an omml m:nor property, and thus, these mtext</span>&#x000A;</div><div class='line' id='LC549'><span class="c">				token elements need to be grouped separately from other token elements.</span>&#x000A;</div><div class='line' id='LC550'><span class="c">				</span>&#x000A;</div><div class='line' id='LC551'><span class="c">				// We do an or not( . . . ), because it was easier to define what token elements match than how they don't match.</span>&#x000A;</div><div class='line' id='LC552'><span class="c">				// Thus, this inner '. . .' defines how token attributes equate to one another.  We add the 'not' outside of to accomplish</span>&#x000A;</div><div class='line' id='LC553'><span class="c">				// the goal of the outer '. . .', which is the find the next element that *doesn't* match.</span>&#x000A;</div><div class='line' id='LC554'><span class="c">				or not(</span>&#x000A;</div><div class='line' id='LC555'><span class="c">				   The background colors match.</span>&#x000A;</div><div class='line' id='LC556'><span class="c">					 </span>&#x000A;</div><div class='line' id='LC557'><span class="c">					 and</span>&#x000A;</div><div class='line' id='LC558'><span class="c">					 </span>&#x000A;</div><div class='line' id='LC559'><span class="c">							The current font (sFontCur) matches the mathvariant</span>&#x000A;</div><div class='line' id='LC560'><span class="c">					 </span>&#x000A;</div><div class='line' id='LC561'><span class="c">							or</span>&#x000A;</div><div class='line' id='LC562'><span class="c">							</span>&#x000A;</div><div class='line' id='LC563'><span class="c">							sFontCur is normal and matches the current font characteristics</span>&#x000A;</div><div class='line' id='LC564'><span class="c">							</span>&#x000A;</div><div class='line' id='LC565'><span class="c">							or </span>&#x000A;</div><div class='line' id='LC566'><span class="c">							</span>&#x000A;</div><div class='line' id='LC567'><span class="c">							sFontCur is italic and matches the current font characteristics</span>&#x000A;</div><div class='line' id='LC568'><span class="c">							</span>&#x000A;</div><div class='line' id='LC569'><span class="c">							or </span>&#x000A;</div><div class='line' id='LC570'><span class="c">							</span>&#x000A;</div><div class='line' id='LC571'><span class="c">							. . .</span>&#x000A;</div><div class='line' id='LC572'><span class="c">				</span>&#x000A;</div><div class='line' id='LC573'><span class="c">					 and</span>&#x000A;</div><div class='line' id='LC574'><span class="c">					 </span>&#x000A;</div><div class='line' id='LC575'><span class="c">					 The font family matches the current font family.</span>&#x000A;</div><div class='line' id='LC576'><span class="c">					 ) // end of not().--&gt;</span>&#x000A;</div><div class='line' id='LC577'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"nndBeforeLim"</span> <span class="na">select=</span><span class="s">"count($ndTokenFirst/following-sibling::*</span>&#x000A;</div><div class='line' id='LC578'><span class="s">					[(not(self::mml:mi) and not(self::mml:mn) and not(self::mml:mo) and not(self::mml:ms) and not(self::mml:mtext))</span>&#x000A;</div><div class='line' id='LC579'><span class="s">					or</span>&#x000A;</div><div class='line' id='LC580'><span class="s">					(self::mml:mi[child::mml:mglyph] or self::mml:mn[child::mml:mglyph] or self::mml:mo[child::mml:mglyph] or self::mml:ms[child::mml:mglyph] or self::mml:mtext[child::mml:mglyph])</span>&#x000A;</div><div class='line' id='LC581'><span class="s">					or</span>&#x000A;</div><div class='line' id='LC582'><span class="s">					(($fNdTokenFirstIsMText=1 and not(self::mml:mtext)) or ($fNdTokenFirstIsMText=0 and self::mml:mtext))</span>&#x000A;</div><div class='line' id='LC583'><span class="s">					or  </span>&#x000A;</div><div class='line' id='LC584'><span class="s">					not(</span>&#x000A;</div><div class='line' id='LC585'><span class="s">						((($sFontCur=@mathvariant or $sFontCur=@mml:mathvariant)</span>&#x000A;</div><div class='line' id='LC586'><span class="s">							or</span>&#x000A;</div><div class='line' id='LC587'><span class="s">							($sFontCur='normal'</span>&#x000A;</div><div class='line' id='LC588'><span class="s">							 and ((@mathvariant='normal' or @mml:mathvariant='normal')</span>&#x000A;</div><div class='line' id='LC589'><span class="s">									  or (((not(@mathvariant) or @mathvariant='') and (not(@mml:mathvariant) or @mml:mathvariant=''))</span>&#x000A;</div><div class='line' id='LC590'><span class="s">											  and (</span>&#x000A;</div><div class='line' id='LC591'><span class="s">									           ((@fontstyle='normal' or @mml:fontstyle='normal') and (not(@fontweight='bold') and not(@mml:fontweight='bold')))</span>&#x000A;</div><div class='line' id='LC592'><span class="s">									           or (self::mml:mi and string-length(normalize-space(.)) &amp;gt; 1)</span>&#x000A;</div><div class='line' id='LC593'><span class="s">									           or (self::mml:mn and string(number(self::mml:mn/text()))='NaN')</span>&#x000A;</div><div class='line' id='LC594'><span class="s">									          )</span>&#x000A;</div><div class='line' id='LC595'><span class="s">									     )</span>&#x000A;</div><div class='line' id='LC596'><span class="s">									 )</span>&#x000A;</div><div class='line' id='LC597'><span class="s">							)</span>&#x000A;</div><div class='line' id='LC598'><span class="s">							or</span>&#x000A;</div><div class='line' id='LC599'><span class="s">							($sFontCur='italic' </span>&#x000A;</div><div class='line' id='LC600'><span class="s">							 and ((@mathvariant='italic' or @mml:mathvariant='italic')</span>&#x000A;</div><div class='line' id='LC601'><span class="s">									  or (((not(@mathvariant) or @mathvariant='') and (not(@mml:mathvariant) or @mml:mathvariant=''))</span>&#x000A;</div><div class='line' id='LC602'><span class="s">												and (</span>&#x000A;</div><div class='line' id='LC603'><span class="s">									           ((@fontstyle='italic' or @mml:fontstyle='italic') and (not(@fontweight='bold') and not(@mml:fontweight='bold')))</span>&#x000A;</div><div class='line' id='LC604'><span class="s">										         or  </span>&#x000A;</div><div class='line' id='LC605'><span class="s">															((self::mml:mn and string(number(self::mml:mn/text()))!='NaN')</span>&#x000A;</div><div class='line' id='LC606'><span class="s">															 or self::mml:mo</span>&#x000A;</div><div class='line' id='LC607'><span class="s">															 or (self::mml:mi and string-length(normalize-space(.)) &amp;lt;= 1)</span>&#x000A;</div><div class='line' id='LC608'><span class="s">									            )</span>&#x000A;</div><div class='line' id='LC609'><span class="s">									          )</span>&#x000A;</div><div class='line' id='LC610'><span class="s">									     )</span>&#x000A;</div><div class='line' id='LC611'><span class="s">									 )</span>&#x000A;</div><div class='line' id='LC612'><span class="s">							) </span>&#x000A;</div><div class='line' id='LC613'><span class="s">							or</span>&#x000A;</div><div class='line' id='LC614'><span class="s">							($sFontCur='bold'</span>&#x000A;</div><div class='line' id='LC615'><span class="s">							 and ((@mathvariant='bold' or @mml:mathvariant='bold')</span>&#x000A;</div><div class='line' id='LC616'><span class="s">									  or (((not(@mathvariant) or @mathvariant='') and (not(@mml:mathvariant) or @mml:mathvariant=''))</span>&#x000A;</div><div class='line' id='LC617'><span class="s">									      and (</span>&#x000A;</div><div class='line' id='LC618'><span class="s">									           ((@fontweight='bold' or @mml:fontweight='bold')</span>&#x000A;</div><div class='line' id='LC619'><span class="s">									           and ((@fontstyle='normal' or @mml:fontstyle='normal') or (self::mml:mi and string-length(normalize-space(.)) &amp;lt;= 1))</span>&#x000A;</div><div class='line' id='LC620'><span class="s">									          )</span>&#x000A;</div><div class='line' id='LC621'><span class="s">									     )</span>&#x000A;</div><div class='line' id='LC622'><span class="s">									   )  </span>&#x000A;</div><div class='line' id='LC623'><span class="s">									 )</span>&#x000A;</div><div class='line' id='LC624'><span class="s">							)</span>&#x000A;</div><div class='line' id='LC625'><span class="s">						  or</span>&#x000A;</div><div class='line' id='LC626'><span class="s">							(($sFontCur='bi' or $sFontCur='bold-italic')</span>&#x000A;</div><div class='line' id='LC627'><span class="s">							 and (</span>&#x000A;</div><div class='line' id='LC628'><span class="s">									  (@mathvariant='bold-italic' or @mml:mathvariant='bold-italic')</span>&#x000A;</div><div class='line' id='LC629'><span class="s">									  or (((not(@mathvariant) or @mathvariant='') and (not(@mml:mathvariant) or @mml:mathvariant=''))</span>&#x000A;</div><div class='line' id='LC630'><span class="s">												and (</span>&#x000A;</div><div class='line' id='LC631'><span class="s">														 ((@fontweight='bold' or @mml:fontweight='bold') and (@fontstyle='italic' or @mml:fontstyle='italic'))</span>&#x000A;</div><div class='line' id='LC632'><span class="s">														 or ((@fontweight='bold' or @mml:fontweight='bold')</span>&#x000A;</div><div class='line' id='LC633'><span class="s">														  	 and (self::mml:mn </span>&#x000A;</div><div class='line' id='LC634'><span class="s">																 		  or self::mml:mo </span>&#x000A;</div><div class='line' id='LC635'><span class="s">																			or (self::mml:mi and string-length(normalize-space(.)) &amp;lt;= 1)))</span>&#x000A;</div><div class='line' id='LC636'><span class="s">									          )</span>&#x000A;</div><div class='line' id='LC637'><span class="s">									     )</span>&#x000A;</div><div class='line' id='LC638'><span class="s">									 )</span>&#x000A;</div><div class='line' id='LC639'><span class="s">							)		     </span>&#x000A;</div><div class='line' id='LC640'><span class="s">							or</span>&#x000A;</div><div class='line' id='LC641'><span class="s">              (($sFontCur='' </span>&#x000A;</div><div class='line' id='LC642'><span class="s">                 and (</span>&#x000A;</div><div class='line' id='LC643'><span class="s">                     ((not(@mathvariant) or @mathvariant='')</span>&#x000A;</div><div class='line' id='LC644'><span class="s">                        and (not(@mml:mathvariant) or @mml:mathvariant='')</span>&#x000A;</div><div class='line' id='LC645'><span class="s">                        and (not(@fontstyle) or @fontstyle='')</span>&#x000A;</div><div class='line' id='LC646'><span class="s">                        and (not(@mml:fontstyle) or @mml:fontstyle='')</span>&#x000A;</div><div class='line' id='LC647'><span class="s">                        and (not(@fontweight)or @fontweight='')</span>&#x000A;</div><div class='line' id='LC648'><span class="s">                        and (not(@mml:fontweight) or @mml:fontweight='')</span>&#x000A;</div><div class='line' id='LC649'><span class="s">		              ) </span>&#x000A;</div><div class='line' id='LC650'><span class="s">                      or </span>&#x000A;</div><div class='line' id='LC651'><span class="s">                        (@mathvariant='italic' or @mml:mathvariant='italic')  </span>&#x000A;</div><div class='line' id='LC652'><span class="s">                      or (</span>&#x000A;</div><div class='line' id='LC653'><span class="s">                           ((not(@mathvariant) or @mathvariant='') and (not(@mml:mathvariant) or @mml:mathvariant=''))</span>&#x000A;</div><div class='line' id='LC654'><span class="s">                               and (</span>&#x000A;</div><div class='line' id='LC655'><span class="s">	                                 (((@fontweight='normal' or @mml:fontweight='normal') </span>&#x000A;</div><div class='line' id='LC656'><span class="s">		                                and (@fontstyle='italic' or @mml:fontstyle='italic'))</span>&#x000A;</div><div class='line' id='LC657'><span class="s">	                                 )</span>&#x000A;</div><div class='line' id='LC658'><span class="s">	                                 or</span>&#x000A;</div><div class='line' id='LC659'><span class="s">		                                ((not(@fontweight) or @fontweight='') and (not(@mml:fontweight) or @mml:fontweight=''))</span>&#x000A;</div><div class='line' id='LC660'><span class="s">			                                and (@fontstyle='italic' or @mml:fontstyle='italic')</span>&#x000A;</div><div class='line' id='LC661'><span class="s">	                                 or</span>&#x000A;</div><div class='line' id='LC662'><span class="s">		                                ((not(@fontweight) or @fontweight='') and (not(@mml:fontweight) or @mml:fontweight=''))</span>&#x000A;</div><div class='line' id='LC663'><span class="s">			                                and (not(@fontstyle) or @fontstyle='')</span>&#x000A;</div><div class='line' id='LC664'><span class="s">			                                and (not(@mml:fontstyle) or @mml:fontstyle=''))</span>&#x000A;</div><div class='line' id='LC665'><span class="s">                            )</span>&#x000A;</div><div class='line' id='LC666'><span class="s">		              )</span>&#x000A;</div><div class='line' id='LC667'>&#x000A;</div><div class='line' id='LC668'><span class="s">              ))</span>&#x000A;</div><div class='line' id='LC669'><span class="s">							or</span>&#x000A;</div><div class='line' id='LC670'><span class="s">              ($sFontCur='normal' </span>&#x000A;</div><div class='line' id='LC671'><span class="s">               and ((self::mml:mi </span>&#x000A;</div><div class='line' id='LC672'><span class="s">                     and (not(@mathvariant) or @mathvariant='')</span>&#x000A;</div><div class='line' id='LC673'><span class="s">	                 and (not(@mml:mathvariant) or @mml:mathvariant)</span>&#x000A;</div><div class='line' id='LC674'><span class="s">	                 and (not(@fontstyle) or @fontstyle='') </span>&#x000A;</div><div class='line' id='LC675'><span class="s">	                 and (not(@mml:fontstyle) or @mml:fontstyle='')</span>&#x000A;</div><div class='line' id='LC676'><span class="s">	                 and (not(@fontweight) or @fontweight='') </span>&#x000A;</div><div class='line' id='LC677'><span class="s">	                 and (not(@mml:fontweight) or @mml:fontweight='')</span>&#x000A;</div><div class='line' id='LC678'><span class="s">	                 and (string-length(normalize-space(.)) &amp;gt; 1)</span>&#x000A;</div><div class='line' id='LC679'><span class="s">	                 )</span>&#x000A;</div><div class='line' id='LC680'><span class="s">	                or ((self::mml:ms or self::mml:mtext) </span>&#x000A;</div><div class='line' id='LC681'><span class="s">		                and (not(@mathvariant) or @mathvariant='')</span>&#x000A;</div><div class='line' id='LC682'><span class="s">		                and (not(@mml:mathvariant) or @mml:mathvariant)</span>&#x000A;</div><div class='line' id='LC683'><span class="s">		                and (not(@fontstyle) or @fontstyle)</span>&#x000A;</div><div class='line' id='LC684'><span class="s">		                and (not(@fontstyle) or @fontstyle='')</span>&#x000A;</div><div class='line' id='LC685'><span class="s">		                and (not(@fontweight) or @fontweight)</span>&#x000A;</div><div class='line' id='LC686'><span class="s">		                and (not(@mml:fontweight) or @mml:fontweight='')</span>&#x000A;</div><div class='line' id='LC687'><span class="s">		                )</span>&#x000A;</div><div class='line' id='LC688'><span class="s">	                )</span>&#x000A;</div><div class='line' id='LC689'><span class="s">              )			 </span>&#x000A;</div><div class='line' id='LC690'><span class="s">						)</span>&#x000A;</div><div class='line' id='LC691'><span class="s">						and</span>&#x000A;</div><div class='line' id='LC692'><span class="s">            (($font-family = @font-family or $font-family = @mml:font-family)</span>&#x000A;</div><div class='line' id='LC693'><span class="s">              or (($font-family='' or not($font-family))</span>&#x000A;</div><div class='line' id='LC694'><span class="s">	              and (not(@font-family) or @font-family='')</span>&#x000A;</div><div class='line' id='LC695'><span class="s">	              and (not(@mml:font-family) or @mml:font-family='')</span>&#x000A;</div><div class='line' id='LC696'><span class="s">	             ) </span>&#x000A;</div><div class='line' id='LC697'><span class="s">            )</span>&#x000A;</div><div class='line' id='LC698'><span class="s">					))</span>&#x000A;</div><div class='line' id='LC699'><span class="s">					][1]/preceding-sibling::*)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC700'>&#x000A;</div><div class='line' id='LC701'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"cndRun"</span> <span class="na">select=</span><span class="s">"$nndBeforeLim - $nndBeforeFirst"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC702'>&#x000A;</div><div class='line' id='LC703'>    <span class="c">&lt;!--Contiguous groups of like-property mi, mn, and mo's are separated by non- mi, mn, mo tags, or mi,mn, or mo</span>&#x000A;</div><div class='line' id='LC704'><span class="c">			tags with different properties.  nndBeforeLim is the number of nodes before the next tag which separates contiguous </span>&#x000A;</div><div class='line' id='LC705'><span class="c">			groups of like-property mi, mn, and mo's.  Knowing this delimiting tag allows for the aggregation of the correct </span>&#x000A;</div><div class='line' id='LC706'><span class="c">			number of mi, mn, and mo tags.--&gt;</span>&#x000A;</div><div class='line' id='LC707'>    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:r"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC708'>&#x000A;</div><div class='line' id='LC709'>      <span class="c">&lt;!--The beginning and ending of the current run has been established. Now we should open a run element--&gt;</span>&#x000A;</div><div class='line' id='LC710'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC711'>&#x000A;</div><div class='line' id='LC712'>        <span class="c">&lt;!--If cndRun &gt; 0, then there is a following diffrent prop, or non- Token, </span>&#x000A;</div><div class='line' id='LC713'><span class="c">						although there may or may not have been a preceding different prop, or non-</span>&#x000A;</div><div class='line' id='LC714'><span class="c">						Token--&gt;</span>&#x000A;</div><div class='line' id='LC715'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$cndRun &amp;gt; 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC716'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateRunProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC717'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="na">select=</span><span class="s">"$mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC718'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="na">select=</span><span class="s">"$fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC719'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="na">select=</span><span class="s">"$fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC720'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathcolor"</span> <span class="na">select=</span><span class="s">"$mathcolor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC721'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathsize"</span> <span class="na">select=</span><span class="s">"$mathsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC722'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"color"</span> <span class="na">select=</span><span class="s">"$color"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC723'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontsize"</span> <span class="na">select=</span><span class="s">"$fontsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC724'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndTokenFirst"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC725'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fNor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC726'>              <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FNor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC727'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndTokenFirst"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC728'>              <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC729'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC730'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC731'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:t"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC732'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC733'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sInput"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC734'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC735'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"namespace-uri($ndTokenFirst) = 'http://www.w3.org/1998/Math/MathML' and local-name($ndTokenFirst) = 'ms'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC736'>                    <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputMs"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC737'>                      <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"msCur"</span> <span class="na">select=</span><span class="s">"$ndTokenFirst"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC738'>                    <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC739'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC740'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC741'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space($ndTokenFirst)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC742'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC743'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC744'>                <span class="nt">&lt;xsl:for-each</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[position() &amp;lt; $cndRun]"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC745'>                  <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC746'>                    <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"namespace-uri(.) = 'http://www.w3.org/1998/Math/MathML' and </span>&#x000A;</div><div class='line' id='LC747'><span class="s">													local-name(.) = 'ms'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC748'>                      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputMs"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC749'>                        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"msCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC750'>                      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC751'>                    <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC752'>                    <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC753'>                      <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space(.)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC754'>                    <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC755'>                  <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC756'>                <span class="nt">&lt;/xsl:for-each&gt;</span>&#x000A;</div><div class='line' id='LC757'>              <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC758'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC759'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC760'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC761'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC762'>&#x000A;</div><div class='line' id='LC763'>          <span class="c">&lt;!--if cndRun lt;= 0, then iNextNonToken = 0, </span>&#x000A;</div><div class='line' id='LC764'><span class="c">						and iPrecNonToken gt;= 0.  In either case, b/c there </span>&#x000A;</div><div class='line' id='LC765'><span class="c">						is no next different property or non-Token </span>&#x000A;</div><div class='line' id='LC766'><span class="c">						(which is implied by the nndBeforeLast being equal to 0) </span>&#x000A;</div><div class='line' id='LC767'><span class="c">						you can put all the remaining mi, mn, and mo's into one </span>&#x000A;</div><div class='line' id='LC768'><span class="c">						group.--&gt;</span>&#x000A;</div><div class='line' id='LC769'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateRunProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC770'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="na">select=</span><span class="s">"$mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC771'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="na">select=</span><span class="s">"$fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC772'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="na">select=</span><span class="s">"$fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC773'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathcolor"</span> <span class="na">select=</span><span class="s">"$mathcolor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC774'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathsize"</span> <span class="na">select=</span><span class="s">"$mathsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC775'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"color"</span> <span class="na">select=</span><span class="s">"$color"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC776'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontsize"</span> <span class="na">select=</span><span class="s">"$fontsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC777'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndTokenFirst"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC778'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fNor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC779'>              <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FNor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC780'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndTokenFirst"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC781'>              <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC782'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC783'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC784'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:t"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC785'>&#x000A;</div><div class='line' id='LC786'>            <span class="c">&lt;!--Create the Run, first output current, then in a </span>&#x000A;</div><div class='line' id='LC787'><span class="c">							for-each, because all the following siblings are</span>&#x000A;</div><div class='line' id='LC788'><span class="c">							mn, mi, and mo's that conform to the run's properties,</span>&#x000A;</div><div class='line' id='LC789'><span class="c">							group them together--&gt;</span>&#x000A;</div><div class='line' id='LC790'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC791'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sInput"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC792'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC793'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"namespace-uri($ndTokenFirst) = 'http://www.w3.org/1998/Math/MathML' and </span>&#x000A;</div><div class='line' id='LC794'><span class="s">													local-name($ndTokenFirst) = 'ms'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC795'>                    <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputMs"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC796'>                      <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"msCur"</span> <span class="na">select=</span><span class="s">"$ndTokenFirst"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC797'>                    <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC798'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC799'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC800'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space($ndTokenFirst)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC801'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC802'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC803'>                <span class="nt">&lt;xsl:for-each</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[self::mml:mi or self::mml:mn or self::mml:mo or self::mml:ms or self::mml:mtext]"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC804'>                  <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC805'>                    <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"namespace-uri(.) = 'http://www.w3.org/1998/Math/MathML' and </span>&#x000A;</div><div class='line' id='LC806'><span class="s">													local-name(.) = 'ms'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC807'>                      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputMs"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC808'>                        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"msCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC809'>                      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC810'>                    <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC811'>                    <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC812'>                      <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space(.)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC813'>                    <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC814'>                  <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC815'>                <span class="nt">&lt;/xsl:for-each&gt;</span>&#x000A;</div><div class='line' id='LC816'>              <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC817'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC818'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC819'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC820'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC821'>    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC822'>&#x000A;</div><div class='line' id='LC823'>    <span class="c">&lt;!--The run was terminated by an mi, mn, mo, ms, or mtext with different properties, </span>&#x000A;</div><div class='line' id='LC824'><span class="c">				therefore, call-template CreateRunWithSameProp, using cndRun+1 node as new start node--&gt;</span>&#x000A;</div><div class='line' id='LC825'>    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$nndBeforeLim!=0 </span>&#x000A;</div><div class='line' id='LC826'><span class="s">           and ($ndTokenFirst/following-sibling::*[$cndRun]/self::mml:mi or </span>&#x000A;</div><div class='line' id='LC827'><span class="s">					      $ndTokenFirst/following-sibling::*[$cndRun]/self::mml:mn or</span>&#x000A;</div><div class='line' id='LC828'><span class="s">					      $ndTokenFirst/following-sibling::*[$cndRun]/self::mml:mo or</span>&#x000A;</div><div class='line' id='LC829'><span class="s">					      $ndTokenFirst/following-sibling::*[$cndRun]/self::mml:ms or</span>&#x000A;</div><div class='line' id='LC830'><span class="s">                $ndTokenFirst/following-sibling::*[$cndRun]/self::mml:mtext) </span>&#x000A;</div><div class='line' id='LC831'><span class="s">            and (count($ndTokenFirst/following-sibling::*[$cndRun]/mml:mglyph) = 0)"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC832'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateRunWithSameProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC833'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathbackground"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC834'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC835'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mathbackground"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC836'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mathbackground"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC837'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC838'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC839'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mml:mathbackground"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC840'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC841'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC842'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC843'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathcolor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC844'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC845'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mathcolor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC846'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mathcolor"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC847'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC848'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC849'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mml:mathcolor"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC850'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC851'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC852'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC853'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathvariant"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC854'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC855'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mathvariant"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC856'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mathvariant"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC857'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC858'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC859'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mml:mathvariant"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC860'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC861'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC862'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC863'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"color"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC864'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC865'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@color"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC866'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@color"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC867'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC868'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC869'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mml:color"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC870'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC871'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC872'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC873'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"font-family"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC874'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC875'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@font-family"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC876'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@font-family"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC877'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC878'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC879'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mml:font-family"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC880'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC881'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC882'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC883'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC884'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC885'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@fontsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC886'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@fontsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC887'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC888'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC889'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mml:fontsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC890'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC891'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC892'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC893'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC894'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC895'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@fontstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC896'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@fontstyle"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC897'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC898'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC899'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mml:fontstyle"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC900'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC901'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC902'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC903'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontweight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC904'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC905'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@fontweight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC906'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@fontweight"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC907'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC908'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC909'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mml:fontweight"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC910'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC911'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC912'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC913'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC914'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC915'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mathsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC916'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mathsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC917'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC918'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC919'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]/@mml:mathsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC920'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC921'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC922'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC923'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndTokenFirst"</span> <span class="na">select=</span><span class="s">"$ndTokenFirst/following-sibling::*[$cndRun]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC924'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC925'>    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC926'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC927'>&#x000A;</div><div class='line' id='LC928'>  <span class="c">&lt;!-- %%Template: FNor</span>&#x000A;</div><div class='line' id='LC929'><span class="c">				 Given the context of ndCur, determine if ndCur should be omml's normal style.</span>&#x000A;</div><div class='line' id='LC930'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC931'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FNor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC932'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC933'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC934'>      <span class="c">&lt;!-- Is the current node an mml:mtext, or if this is an mglyph whose parent is </span>&#x000A;</div><div class='line' id='LC935'><span class="c">             an mml:mtext. --&gt;</span>&#x000A;</div><div class='line' id='LC936'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/self::mml:mtext or ($ndCur/self::mml:mglyph and parent::mml:mtext)"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC937'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC938'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC939'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC940'>&#x000A;</div><div class='line' id='LC941'>&#x000A;</div><div class='line' id='LC942'>  <span class="c">&lt;!-- %%Template: CreateRunProp</span>&#x000A;</div><div class='line' id='LC943'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC944'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CreateRunProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC945'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"mathbackground"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC946'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"mathcolor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC947'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC948'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"color"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC949'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"font-family"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC950'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fontsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC951'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC952'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC953'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"mathsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC954'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC955'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fontfamily"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC956'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fNor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC957'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"mstyleColor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC958'>      <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"not(not($ndCur))"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC959'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC960'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/ancestor::mml:mstyle[@color][1]/@color"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC961'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndCur/ancestor::mml:mstyle[@color][1]/@color"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC962'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC963'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC964'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndCur/ancestor::mml:mstyle[@color][1]/@mml:color"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC965'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC966'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC967'>      <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC968'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC969'>    <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateMathRPR"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC970'>      <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="na">select=</span><span class="s">"$mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC971'>      <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="na">select=</span><span class="s">"$fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC972'>      <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="na">select=</span><span class="s">"$fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC973'>      <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC974'>      <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fNor"</span> <span class="na">select=</span><span class="s">"$fNor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC975'>    <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC976'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC977'>&#x000A;</div><div class='line' id='LC978'>  <span class="c">&lt;!-- %%Template: CreateMathRPR</span>&#x000A;</div><div class='line' id='LC979'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC980'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CreateMathRPR"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC981'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC982'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC983'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC984'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC985'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fNor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC986'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sFontCur"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC987'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"GetFontCur"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC988'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="na">select=</span><span class="s">"$mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC989'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="na">select=</span><span class="s">"$fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC990'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="na">select=</span><span class="s">"$fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC991'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC992'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC993'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC994'>    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fNor=1 or ($sFontCur!='italic' and $sFontCur!='')"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC995'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:rPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC996'>        <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fNor=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC997'>          <span class="nt">&lt;m:nor</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC998'>        <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC999'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateMathScrStyProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1000'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"font"</span> <span class="na">select=</span><span class="s">"$sFontCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1001'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fNor"</span> <span class="na">select=</span><span class="s">"$fNor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1002'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1003'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1004'>    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1005'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1006'>&#x000A;</div><div class='line' id='LC1007'>  <span class="c">&lt;!-- %%Template: GetFontCur</span>&#x000A;</div><div class='line' id='LC1008'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC1009'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"GetFontCur"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1010'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1011'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1012'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1013'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1014'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1015'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$mathvariant!=''"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1016'>        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1017'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1018'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"not($ndCur)"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1019'>        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"'italic'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1020'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1021'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/self::mml:mi and (string-length(normalize-space($ndCur)) &amp;lt;= 1)</span>&#x000A;</div><div class='line' id='LC1022'><span class="s">								      or $ndCur/self::mml:mn and string(number($ndCur/text()))!='NaN'</span>&#x000A;</div><div class='line' id='LC1023'><span class="s">								      or $ndCur/self::mml:mo"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1024'>&#x000A;</div><div class='line' id='LC1025'>        <span class="c">&lt;!-- The default for the above three cases is fontstyle=italic fontweight=normal.--&gt;</span>&#x000A;</div><div class='line' id='LC1026'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1027'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fontstyle='normal' and $fontweight='bold'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1028'>            <span class="c">&lt;!-- In omml, a sty of 'b' (which is what bold is translated into)</span>&#x000A;</div><div class='line' id='LC1029'><span class="c">						     implies a normal fontstyle --&gt;</span>&#x000A;</div><div class='line' id='LC1030'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"'bold'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1031'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1032'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fontstyle='normal'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1033'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"'normal'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1034'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1035'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fontweight='bold'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1036'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"'bi'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1037'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1038'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1039'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"'italic'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1040'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1041'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1042'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1043'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1044'>        <span class="c">&lt;!--Default is fontweight = 'normal' and fontstyle='normal'--&gt;</span>&#x000A;</div><div class='line' id='LC1045'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1046'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fontstyle='italic' and $fontweight='bold'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1047'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"'bi'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1048'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1049'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fontstyle='italic'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1050'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"'italic'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1051'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1052'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fontweight='bold'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1053'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"'bold'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1054'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1055'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1056'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"'normal'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1057'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1058'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1059'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1060'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1061'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1062'>&#x000A;</div><div class='line' id='LC1063'>&#x000A;</div><div class='line' id='LC1064'>  <span class="c">&lt;!-- %%Template: CreateMathScrStyProp</span>&#x000A;</div><div class='line' id='LC1065'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC1066'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CreateMathScrStyProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1067'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"font"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1068'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fNor"</span> <span class="na">select=</span><span class="s">"0"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1069'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1070'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='normal' and $fNor=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1071'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:sty"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1072'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>p<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1073'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1074'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1075'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='bold'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1076'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:sty"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1077'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>b<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1078'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1079'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1080'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='italic'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1081'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1082'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='script'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1083'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:scr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1084'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>script<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1085'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1086'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1087'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='bold-script'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1088'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:scr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1089'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>script<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1090'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1091'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:sty"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1092'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>b<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1093'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1094'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1095'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='double-struck'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1096'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:scr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1097'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>double-struck<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1098'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1099'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:sty"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1100'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>p<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1101'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1102'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1103'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='fraktur'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1104'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:scr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1105'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>fraktur<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1106'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1107'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:sty"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1108'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>p<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1109'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1110'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1111'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='bold-fraktur'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1112'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:scr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1113'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>fraktur<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1114'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1115'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:sty"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1116'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>b<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1117'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1118'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1119'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='sans-serif'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1120'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:scr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1121'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>sans-serif<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1122'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1123'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:sty"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1124'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>p<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1125'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1126'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1127'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='bold-sans-serif'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1128'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:scr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1129'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>sans-serif<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1130'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1131'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:sty"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1132'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>b<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1133'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1134'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1135'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='sans-serif-italic'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1136'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:scr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1137'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>sans-serif<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1138'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1139'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1140'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='sans-serif-bold-italic'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1141'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:scr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1142'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>sans-serif<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1143'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1144'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:sty"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1145'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>bi<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1146'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1147'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1148'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='monospace'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1149'>      <span class="c">&lt;!-- We can't do monospace, so leave empty --&gt;</span>&#x000A;</div><div class='line' id='LC1150'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='bold'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1151'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:sty"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1152'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>b<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1153'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1154'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1155'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$font='bi' or $font='bold-italic'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1156'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:sty"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1157'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>bi<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1158'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1159'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1160'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1161'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1162'>&#x000A;</div><div class='line' id='LC1163'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FBar"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1164'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"sLineThickness"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1165'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerLineThickness"</span> <span class="na">select=</span><span class="s">"translate($sLineThickness, $StrUCAlphabet, $StrLCAlphabet)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1166'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1167'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"string-length($sLowerLineThickness)=0</span>&#x000A;</div><div class='line' id='LC1168'><span class="s">                      or $sLowerLineThickness='thin' </span>&#x000A;</div><div class='line' id='LC1169'><span class="s">                      or $sLowerLineThickness='medium' </span>&#x000A;</div><div class='line' id='LC1170'><span class="s">                      or $sLowerLineThickness='thick'"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1171'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1172'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fStrContainsNonZeroDigit"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1173'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FStrContainsNonZeroDigit"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1174'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="na">select=</span><span class="s">"$sLowerLineThickness"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1175'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1176'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1177'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1178'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fStrContainsNonZeroDigit=1"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1179'>          <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1180'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1181'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1182'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1183'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1184'>&#x000A;</div><div class='line' id='LC1185'>&#x000A;</div><div class='line' id='LC1186'>  <span class="c">&lt;!-- %%Template: match mfrac </span>&#x000A;</div><div class='line' id='LC1187'><span class="c">		--&gt;</span>&#x000A;</div><div class='line' id='LC1188'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mfrac"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1189'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fBar"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1190'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FBar"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1191'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sLineThickness"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1192'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1193'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@linethickness"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1194'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@linethickness"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1195'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1196'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1197'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:linethickness"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1198'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1199'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1200'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC1201'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1202'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1203'>&#x000A;</div><div class='line' id='LC1204'>    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:f"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1205'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:fPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1206'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:type"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1207'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1208'>            <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1209'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fBar=0"</span><span class="nt">&gt;</span>noBar<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1210'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@bevelled='true' or @mml:bevelled='true'"</span><span class="nt">&gt;</span>skw<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1211'>              <span class="nt">&lt;xsl:otherwise&gt;</span>bar<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1212'>            <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1213'>          <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1214'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1215'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1216'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:num"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1217'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1218'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1219'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1220'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:den"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1221'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1222'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1223'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1224'>    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1225'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1226'>&#x000A;</div><div class='line' id='LC1227'>  <span class="c">&lt;!-- %%Template: match menclose msqrt</span>&#x000A;</div><div class='line' id='LC1228'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC1229'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:menclose | mml:msqrt"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1230'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseNotation"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1231'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1232'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@notation"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1233'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate(@notation, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1234'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1235'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1236'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate(@mml:notation, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1237'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1238'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1239'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1240'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1241'>      <span class="c">&lt;!-- Take care of default --&gt;</span>&#x000A;</div><div class='line' id='LC1242'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sLowerCaseNotation='radical' </span>&#x000A;</div><div class='line' id='LC1243'><span class="s">                      or not($sLowerCaseNotation) </span>&#x000A;</div><div class='line' id='LC1244'><span class="s">                      or $sLowerCaseNotation='' </span>&#x000A;</div><div class='line' id='LC1245'><span class="s">                      or self::mml:msqrt"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1246'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:rad"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1247'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:radPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1248'>            <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:degHide"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1249'>              <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1250'>            <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1251'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1252'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:deg"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1253'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1254'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1255'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:e"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1256'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1257'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1258'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1259'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1260'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1261'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1262'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1263'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sLowerCaseNotation='actuarial' or $sLowerCaseNotation='longdiv'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1264'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1265'>            <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:borderBox"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1266'>              <span class="c">&lt;!-- Dealing with more complex notation attribute --&gt;</span>&#x000A;</div><div class='line' id='LC1267'>              <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fBox"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1268'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1269'>                  <span class="c">&lt;!-- Word doesn't have circle and roundedbox concepts, therefore, map both to a </span>&#x000A;</div><div class='line' id='LC1270'><span class="c">                       box. --&gt;</span>&#x000A;</div><div class='line' id='LC1271'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"contains($sLowerCaseNotation, 'box')</span>&#x000A;</div><div class='line' id='LC1272'><span class="s">                                  or contains($sLowerCaseNotation, 'circle')</span>&#x000A;</div><div class='line' id='LC1273'><span class="s">                                  or contains($sLowerCaseNotation, 'roundedbox')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1274'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1275'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1276'>              <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1277'>              <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fTop"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1278'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1279'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"contains($sLowerCaseNotation, 'top')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1280'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1281'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1282'>              <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1283'>              <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fBot"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1284'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1285'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"contains($sLowerCaseNotation, 'bottom')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1286'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1287'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1288'>              <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1289'>              <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fLeft"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1290'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1291'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"contains($sLowerCaseNotation, 'left')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1292'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1293'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1294'>              <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1295'>              <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fRight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1296'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1297'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"contains($sLowerCaseNotation, 'right')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1298'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1299'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1300'>              <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1301'>              <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fStrikeH"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1302'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1303'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"contains($sLowerCaseNotation, 'horizontalstrike')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1304'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1305'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1306'>              <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1307'>              <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fStrikeV"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1308'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1309'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"contains($sLowerCaseNotation, 'verticalstrike')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1310'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1311'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1312'>              <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1313'>              <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fStrikeBLTR"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1314'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1315'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"contains($sLowerCaseNotation, 'updiagonalstrike')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1316'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1317'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1318'>              <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1319'>              <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fStrikeTLBR"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1320'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1321'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"contains($sLowerCaseNotation, 'downdiagonalstrike')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1322'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1323'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1324'>              <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1325'>&#x000A;</div><div class='line' id='LC1326'>              <span class="c">&lt;!-- Should we create borderBoxPr? </span>&#x000A;</div><div class='line' id='LC1327'><span class="c">                   We should if the enclosure isn't Word's default, which is</span>&#x000A;</div><div class='line' id='LC1328'><span class="c">                   a plain box --&gt;</span>&#x000A;</div><div class='line' id='LC1329'>              <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fStrikeH=1 </span>&#x000A;</div><div class='line' id='LC1330'><span class="s">                          or $fStrikeV=1</span>&#x000A;</div><div class='line' id='LC1331'><span class="s">                          or $fStrikeBLTR=1 </span>&#x000A;</div><div class='line' id='LC1332'><span class="s">                          or $fStrikeTLBR=1</span>&#x000A;</div><div class='line' id='LC1333'><span class="s">                          or ($fBox=0</span>&#x000A;</div><div class='line' id='LC1334'><span class="s">                              and not($fTop=1 </span>&#x000A;</div><div class='line' id='LC1335'><span class="s">                                      and $fBot=1</span>&#x000A;</div><div class='line' id='LC1336'><span class="s">                                      and $fLeft=1</span>&#x000A;</div><div class='line' id='LC1337'><span class="s">                                      and $fRight=1)</span>&#x000A;</div><div class='line' id='LC1338'><span class="s">                              )"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1339'>                <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:borderBoxPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1340'>                  <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fBox=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1341'>                    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fTop=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1342'>                      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:hideTop"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1343'>                        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1344'>                      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1345'>                    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1346'>                    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fBot=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1347'>                      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:hideBot"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1348'>                        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1349'>                      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1350'>                    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1351'>                    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fLeft=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1352'>                      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:hideLeft"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1353'>                        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1354'>                      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1355'>                    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1356'>                    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fRight=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1357'>                      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:hideRight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1358'>                        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1359'>                      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1360'>                    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1361'>                  <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1362'>                  <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fStrikeH=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1363'>                    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:strikeH"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1364'>                      <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1365'>                    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1366'>                  <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1367'>                  <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fStrikeV=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1368'>                    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:strikeV"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1369'>                      <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1370'>                    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1371'>                  <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1372'>                  <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fStrikeBLTR=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1373'>                    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:strikeBLTR"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1374'>                      <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1375'>                    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1376'>                  <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1377'>                  <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fStrikeTLBR=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1378'>                    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:strikeTLBR"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1379'>                      <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1380'>                    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1381'>                  <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1382'>                <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1383'>              <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1384'>              <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:e"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1385'>                <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1386'>                <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1387'>              <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1388'>            <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1389'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1390'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1391'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1392'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1393'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1394'>&#x000A;</div><div class='line' id='LC1395'>  <span class="c">&lt;!-- %%Template: CreateArgProp</span>&#x000A;</div><div class='line' id='LC1396'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC1397'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1398'>    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"not(count(ancestor-or-self::mml:mstyle[@scriptlevel='0' or @scriptlevel='1' or @scriptlevel='2'])=0)</span>&#x000A;</div><div class='line' id='LC1399'><span class="s">                  or not(count(ancestor-or-self::mml:mstyle[@mml:scriptlevel='0' or @mml:scriptlevel='1' or @mml:scriptlevel='2'])=0)"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1400'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:argPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1401'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:scrLvl"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1402'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1403'>            <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1404'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"ancestor-or-self::mml:mstyle[@scriptlevel][1]/@scriptlevel"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1405'>                <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"ancestor-or-self::mml:mstyle[@scriptlevel][1]/@scriptlevel"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1406'>              <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1407'>              <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1408'>                <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"ancestor-or-self::mml:mstyle[@scriptlevel][1]/@mml:scriptlevel"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1409'>              <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1410'>            <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1411'>          <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1412'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1413'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1414'>    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC1415'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1416'>&#x000A;</div><div class='line' id='LC1417'>  <span class="c">&lt;!-- %%Template: match mroot</span>&#x000A;</div><div class='line' id='LC1418'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC1419'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mroot"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1420'>    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:rad"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1421'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:radPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1422'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:degHide"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1423'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>off<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1424'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1425'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1426'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:deg"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1427'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1428'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1429'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1430'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:e"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1431'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1432'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1433'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1434'>    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1435'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1436'>&#x000A;</div><div class='line' id='LC1437'>  <span class="c">&lt;!-- MathML has no concept of a linear fraction.  When transforming a linear fraction</span>&#x000A;</div><div class='line' id='LC1438'><span class="c">       from Omml to MathML, we create the following MathML:</span>&#x000A;</div><div class='line' id='LC1439'><span class="c">       </span>&#x000A;</div><div class='line' id='LC1440'><span class="c">       &lt;mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1441'><span class="c">         &lt;mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1442'><span class="c">            // numerator</span>&#x000A;</div><div class='line' id='LC1443'><span class="c">         &lt;/mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1444'><span class="c">         &lt;mml:mo&gt;/&lt;/mml:mo&gt;</span>&#x000A;</div><div class='line' id='LC1445'><span class="c">         &lt;mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1446'><span class="c">            // denominator</span>&#x000A;</div><div class='line' id='LC1447'><span class="c">         &lt;/mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1448'><span class="c">       &lt;/mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1449'><span class="c">       </span>&#x000A;</div><div class='line' id='LC1450'><span class="c">       This template looks for four things:</span>&#x000A;</div><div class='line' id='LC1451'><span class="c">          1.  ndCur is an mml:mrow</span>&#x000A;</div><div class='line' id='LC1452'><span class="c">          2.  ndCur has three children</span>&#x000A;</div><div class='line' id='LC1453'><span class="c">          3.  The second child is an &lt;mml:mo&gt;</span>&#x000A;</div><div class='line' id='LC1454'><span class="c">          4.  The second child's text is '/'</span>&#x000A;</div><div class='line' id='LC1455'><span class="c">       </span>&#x000A;</div><div class='line' id='LC1456'><span class="c">       --&gt;</span>&#x000A;</div><div class='line' id='LC1457'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FLinearFrac"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1458'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1459'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sNdText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1460'>      <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space($ndCur/*[2])"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1461'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1462'>&#x000A;</div><div class='line' id='LC1463'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1464'>      <span class="c">&lt;!-- I spy a linear fraction --&gt;</span>&#x000A;</div><div class='line' id='LC1465'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/self::mml:mrow</span>&#x000A;</div><div class='line' id='LC1466'><span class="s">                      and count($ndCur/*)=3</span>&#x000A;</div><div class='line' id='LC1467'><span class="s">                      and $ndCur/*[2][self::mml:mo]</span>&#x000A;</div><div class='line' id='LC1468'><span class="s">                      and $sNdText='/'"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1469'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1470'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1471'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1472'>&#x000A;</div><div class='line' id='LC1473'>&#x000A;</div><div class='line' id='LC1474'>  <span class="c">&lt;!-- Though presentation mathml can certainly typeset any generic function with the</span>&#x000A;</div><div class='line' id='LC1475'><span class="c">	     appropriate function operator spacing, presentation MathML has no concept of </span>&#x000A;</div><div class='line' id='LC1476'><span class="c">			 a function structure like omml does.  In order to preserve the omml &lt;func&gt; </span>&#x000A;</div><div class='line' id='LC1477'><span class="c">			 element, we must establish how an omml &lt;func&gt; element looks in mml.  This </span>&#x000A;</div><div class='line' id='LC1478'><span class="c">			 is shown below:</span>&#x000A;</div><div class='line' id='LC1479'><span class="c">       </span>&#x000A;</div><div class='line' id='LC1480'><span class="c">       &lt;mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1481'><span class="c">         &lt;mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1482'><span class="c">            // function name</span>&#x000A;</div><div class='line' id='LC1483'><span class="c">         &lt;/mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1484'><span class="c">         &lt;mml:mo&gt;&amp;#x02061;&lt;/mml:mo&gt;</span>&#x000A;</div><div class='line' id='LC1485'><span class="c">         &lt;mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1486'><span class="c">            // function argument</span>&#x000A;</div><div class='line' id='LC1487'><span class="c">         &lt;/mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1488'><span class="c">       &lt;/mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1489'><span class="c">       </span>&#x000A;</div><div class='line' id='LC1490'><span class="c">       This template looks for six things to be true:</span>&#x000A;</div><div class='line' id='LC1491'><span class="c">					1.  ndCur is an mml:mrow</span>&#x000A;</div><div class='line' id='LC1492'><span class="c">					2.  ndCur has three children</span>&#x000A;</div><div class='line' id='LC1493'><span class="c">					3.  The first child is an &lt;mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1494'><span class="c">					4.  The second child is an &lt;mml:mo&gt;</span>&#x000A;</div><div class='line' id='LC1495'><span class="c">					5.  The third child is an &lt;mml:mrow&gt;</span>&#x000A;</div><div class='line' id='LC1496'><span class="c">					6.  The second child's text is '&amp;#x02061;'</span>&#x000A;</div><div class='line' id='LC1497'><span class="c">       --&gt;</span>&#x000A;</div><div class='line' id='LC1498'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FIsFunc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1499'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1500'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sNdText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1501'>      <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space($ndCur/*[2])"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1502'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1503'>&#x000A;</div><div class='line' id='LC1504'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1505'>      <span class="c">&lt;!-- Is this an omml function --&gt;</span>&#x000A;</div><div class='line' id='LC1506'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"count($ndCur/*)=3</span>&#x000A;</div><div class='line' id='LC1507'><span class="s">								      and $ndCur/self::*[self::mml:mrow]</span>&#x000A;</div><div class='line' id='LC1508'><span class="s">                      and $ndCur/*[2][self::mml:mo]</span>&#x000A;</div><div class='line' id='LC1509'><span class="s">                      and $sNdText='&amp;#x02061;'"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1510'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1511'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1512'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1513'>&#x000A;</div><div class='line' id='LC1514'>&#x000A;</div><div class='line' id='LC1515'>  <span class="c">&lt;!-- Given the node of the linear fraction's parent mrow, </span>&#x000A;</div><div class='line' id='LC1516'><span class="c">       make a linear fraction --&gt;</span>&#x000A;</div><div class='line' id='LC1517'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"MakeLinearFraction"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1518'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1519'>    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:f"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1520'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:fPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1521'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:type"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1522'>          <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>lin<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1523'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1524'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1525'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:num"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1526'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1527'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"$ndCur/*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1528'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1529'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:den"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1530'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1531'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"$ndCur/*[3]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1532'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1533'>    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1534'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1535'>&#x000A;</div><div class='line' id='LC1536'>&#x000A;</div><div class='line' id='LC1537'>  <span class="c">&lt;!-- Given the node of the function's parent mrow, </span>&#x000A;</div><div class='line' id='LC1538'><span class="c">       make an omml function --&gt;</span>&#x000A;</div><div class='line' id='LC1539'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"WriteFunc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1540'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1541'>&#x000A;</div><div class='line' id='LC1542'>    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:func"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1543'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:fName"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1544'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"$ndCur/child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1545'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1546'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:e"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1547'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"$ndCur/child::*[3]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1548'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1549'>    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1550'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1551'>&#x000A;</div><div class='line' id='LC1552'>&#x000A;</div><div class='line' id='LC1553'>  <span class="c">&lt;!-- MathML doesn't have the concept of nAry structures.  The best approximation</span>&#x000A;</div><div class='line' id='LC1554'><span class="c">       to these is to have some under/over or sub/sup followed by an mrow or mstyle.</span>&#x000A;</div><div class='line' id='LC1555'><span class="c">       </span>&#x000A;</div><div class='line' id='LC1556'><span class="c">       In the case that we've come across some under/over or sub/sup that contains an </span>&#x000A;</div><div class='line' id='LC1557'><span class="c">       nAry operator, this function handles the following sibling to the nAry structure.</span>&#x000A;</div><div class='line' id='LC1558'><span class="c">       </span>&#x000A;</div><div class='line' id='LC1559'><span class="c">       If the following sibling is:</span>&#x000A;</div><div class='line' id='LC1560'><span class="c">       </span>&#x000A;</div><div class='line' id='LC1561'><span class="c">          mml:mstyle, then apply templates to the children of this mml:mstyle</span>&#x000A;</div><div class='line' id='LC1562'><span class="c">          </span>&#x000A;</div><div class='line' id='LC1563'><span class="c">          mml:mrow, determine if this mrow is a linear fraction </span>&#x000A;</div><div class='line' id='LC1564'><span class="c">          (see comments for FlinearFrac template).</span>&#x000A;</div><div class='line' id='LC1565'><span class="c">              If so, make an Omml linear fraction.</span>&#x000A;</div><div class='line' id='LC1566'><span class="c">              If not, apply templates as was done for mml:mstyle.</span>&#x000A;</div><div class='line' id='LC1567'><span class="c">       </span>&#x000A;</div><div class='line' id='LC1568'><span class="c">       --&gt;</span>&#x000A;</div><div class='line' id='LC1569'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"NaryHandleMrowMstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1570'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1571'>    <span class="c">&lt;!-- if the next sibling is an mrow, pull it in by </span>&#x000A;</div><div class='line' id='LC1572'><span class="c">							doing whatever we would have done to its children. </span>&#x000A;</div><div class='line' id='LC1573'><span class="c">							The mrow itself will be skipped, see template above. --&gt;</span>&#x000A;</div><div class='line' id='LC1574'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1575'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur[self::mml:mrow]"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1576'>        <span class="c">&lt;!-- Check for linear fraction --&gt;</span>&#x000A;</div><div class='line' id='LC1577'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fLinearFrac"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1578'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FLinearFrac"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1579'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1580'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1581'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1582'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1583'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fLinearFrac=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1584'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"MakeLinearFraction"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1585'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1586'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1587'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1588'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1589'>            <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fFunc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1590'>              <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsFunc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1591'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1592'>              <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1593'>            <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1594'>            <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1595'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fFunc=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1596'>                <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"WriteFunc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1597'>                  <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1598'>                <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1599'>              <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1600'>              <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1601'>                <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"$ndCur/*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1602'>              <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1603'>            <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1604'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1605'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1606'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1607'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur[self::mml:mstyle]"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1608'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"$ndCur/*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1609'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1610'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1611'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1612'>&#x000A;</div><div class='line' id='LC1613'>&#x000A;</div><div class='line' id='LC1614'>  <span class="c">&lt;!-- MathML munder/mover can represent several Omml constructs </span>&#x000A;</div><div class='line' id='LC1615'><span class="c">       (m:bar, m:limLow, m:limUpp, m:acc, m:groupChr, etc.).  The following </span>&#x000A;</div><div class='line' id='LC1616'><span class="c">       templates (FIsBar, FIsAcc, and FIsGroupChr) are used to determine </span>&#x000A;</div><div class='line' id='LC1617'><span class="c">			 which of these Omml constructs an munder/mover should be translated into. --&gt;</span>&#x000A;</div><div class='line' id='LC1618'>&#x000A;</div><div class='line' id='LC1619'>  <span class="c">&lt;!-- Note:  ndCur should only be an munder/mover MathML element.</span>&#x000A;</div><div class='line' id='LC1620'><span class="c">  </span>&#x000A;</div><div class='line' id='LC1621'><span class="c">       ndCur should be interpretted as an m:bar if</span>&#x000A;</div><div class='line' id='LC1622'><span class="c">          1)  its respective accent attribute is not true</span>&#x000A;</div><div class='line' id='LC1623'><span class="c">          2)  its second child is an mml:mo</span>&#x000A;</div><div class='line' id='LC1624'><span class="c">          3)  the character of the mml:mo is the correct under/over bar. --&gt;</span>&#x000A;</div><div class='line' id='LC1625'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FIsBar"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1626'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1627'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fUnder"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1628'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1629'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur[self::mml:munder]"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1630'>        <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1631'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1632'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1633'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseAccent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1634'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1635'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fUnder=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1636'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1637'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/@accentunder"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1638'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/@accentunder, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1639'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1640'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1641'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/@mml:accentunder, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1642'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1643'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1644'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1645'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1646'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1647'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/@accent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1648'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/@accent, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1649'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1650'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1651'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/@mml:accent, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1652'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1653'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1654'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1655'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1656'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1657'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fAccent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1658'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1659'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sLowerCaseAccent='true'"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1660'>        <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1661'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1662'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1663'>&#x000A;</div><div class='line' id='LC1664'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1665'>      <span class="c">&lt;!-- The script is unaccented and the second child is an mo --&gt;</span>&#x000A;</div><div class='line' id='LC1666'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fAccent = 0 </span>&#x000A;</div><div class='line' id='LC1667'><span class="s">                      and $ndCur/child::*[2]/self::mml:mo"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1668'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sOperator"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1669'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndCur/child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1670'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1671'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1672'>          <span class="c">&lt;!-- Should we write an underbar? --&gt;</span>&#x000A;</div><div class='line' id='LC1673'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fUnder = 1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1674'>            <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1675'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sOperator = '&amp;#x0332;' or $sOperator = '&amp;#x005F;'"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1676'>              <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1677'>            <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1678'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1679'>          <span class="c">&lt;!-- Should we write an overbar? --&gt;</span>&#x000A;</div><div class='line' id='LC1680'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1681'>            <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1682'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sOperator = '&amp;#x0305;' or $sOperator = '&amp;#x00AF;'"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1683'>              <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1684'>            <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1685'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1686'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1687'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1688'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1689'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1690'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1691'>&#x000A;</div><div class='line' id='LC1692'>  <span class="c">&lt;!-- Note:  ndCur should only be an mover MathML element.</span>&#x000A;</div><div class='line' id='LC1693'><span class="c">  </span>&#x000A;</div><div class='line' id='LC1694'><span class="c">       ndCur should be interpretted as an m:acc if</span>&#x000A;</div><div class='line' id='LC1695'><span class="c">          1)  its accent attribute is true</span>&#x000A;</div><div class='line' id='LC1696'><span class="c">          2)  its second child is an mml:mo</span>&#x000A;</div><div class='line' id='LC1697'><span class="c">          3)  there is only zero or one character in the mml:mo --&gt;</span>&#x000A;</div><div class='line' id='LC1698'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FIsAcc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1699'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1700'>&#x000A;</div><div class='line' id='LC1701'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseAccent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1702'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1703'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/@accent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1704'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/@accent, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1705'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1706'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1707'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/@mml:accent, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1708'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1709'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1710'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1711'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseMoAccent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1712'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1713'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/child::*[2] = mml:mo and $ndCur/child::*[2]/@accent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1714'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/child::*[2]/@accent, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1715'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1716'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/child::*[2] = mml:mo and $ndCur/child::*[2]/@mml:accent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1717'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/child::*[2]/@mml:accent, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1718'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1719'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1720'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1721'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fAccent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1722'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1723'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sLowerCaseMoAccent='true' or ($sLowerCaseMoAccent='' and $sLowerCaseAccent='true')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1724'>        <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1725'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1726'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1727'>&#x000A;</div><div class='line' id='LC1728'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1729'>      <span class="c">&lt;!-- The script is accented and the second child is an mo --&gt;</span>&#x000A;</div><div class='line' id='LC1730'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fAccent = 1 </span>&#x000A;</div><div class='line' id='LC1731'><span class="s">                      and $ndCur/child::*[2] = mml:mo"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1732'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sOperator"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1733'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndCur/child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1734'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1735'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1736'>          <span class="c">&lt;!-- There is only one operator, this is a valid Omml accent! --&gt;</span>&#x000A;</div><div class='line' id='LC1737'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"string-length($sOperator) &amp;lt;= 1"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1738'>          <span class="c">&lt;!-- More than one accented operator.  This isn't a valid</span>&#x000A;</div><div class='line' id='LC1739'><span class="c">               omml accent --&gt;</span>&#x000A;</div><div class='line' id='LC1740'>          <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1741'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1742'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1743'>      <span class="c">&lt;!-- Not accented, not an operator, or both, but in any case, this is</span>&#x000A;</div><div class='line' id='LC1744'><span class="c">           not an Omml accent. --&gt;</span>&#x000A;</div><div class='line' id='LC1745'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1746'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1747'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1748'>&#x000A;</div><div class='line' id='LC1749'>&#x000A;</div><div class='line' id='LC1750'>  <span class="c">&lt;!-- Is ndCur a groupChr? </span>&#x000A;</div><div class='line' id='LC1751'><span class="c">			 ndCur is a groupChr if:</span>&#x000A;</div><div class='line' id='LC1752'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC1753'><span class="c">				 1.  The accent is false (note:  accent attribute </span>&#x000A;</div><div class='line' id='LC1754'><span class="c">						 for munder is accentunder). </span>&#x000A;</div><div class='line' id='LC1755'><span class="c">				 2.  ndCur is an munder or mover.</span>&#x000A;</div><div class='line' id='LC1756'><span class="c">				 3.  ndCur has two children</span>&#x000A;</div><div class='line' id='LC1757'><span class="c">				 4.  Of these two children, one is an mml:mo and the other is an mml:mrow</span>&#x000A;</div><div class='line' id='LC1758'><span class="c">				 5.  The number of characters in the mml:mo is 1.</span>&#x000A;</div><div class='line' id='LC1759'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC1760'><span class="c">			 If all of the above are true, then return 1, else return 0.</span>&#x000A;</div><div class='line' id='LC1761'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC1762'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FIsGroupChr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1763'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1764'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fUnder"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1765'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1766'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur[self::mml:munder]"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1767'>        <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1768'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1769'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1770'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseAccent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1771'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1772'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fUnder=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1773'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1774'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/@accentunder"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1775'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/@accentunder, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1776'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1777'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1778'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/@mml:accentunder, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1779'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1780'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1781'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1782'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1783'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1784'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/@accent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1785'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/@accent, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1786'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1787'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1788'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/@mml:accent, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1789'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1790'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1791'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1792'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1793'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1794'>&#x000A;</div><div class='line' id='LC1795'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fAccentFalse"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1796'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1797'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sLowerCaseAccent='false'"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1798'>        <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1799'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1800'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1801'>&#x000A;</div><div class='line' id='LC1802'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1803'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fAccentFalse=1</span>&#x000A;</div><div class='line' id='LC1804'><span class="s">                      and $ndCur[self::mml:munder or self::mml:mover] </span>&#x000A;</div><div class='line' id='LC1805'><span class="s">                      and count($ndCur/child::*)=2 </span>&#x000A;</div><div class='line' id='LC1806'><span class="s">                      and (($ndCur/child::*[1][self::mml:mrow] and $ndCur/child::*[2][self::mml:mo]) </span>&#x000A;</div><div class='line' id='LC1807'><span class="s">                            or ($ndCur/child::*[1][self::mml:mo] and $ndCur/child::*[2][self::mml:mrow]))"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1808'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sOperator"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1809'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ndCur/child::mml:mo"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1810'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1811'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1812'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"string-length($sOperator) &amp;lt;= 1"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1813'>          <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1814'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1815'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1816'>&#x000A;</div><div class='line' id='LC1817'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1818'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1819'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1820'>&#x000A;</div><div class='line' id='LC1821'>&#x000A;</div><div class='line' id='LC1822'>  <span class="c">&lt;!-- %%Template: match munder</span>&#x000A;</div><div class='line' id='LC1823'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC1824'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:munder"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1825'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1826'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"isNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1827'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1828'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1829'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1830'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1831'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fNary='true'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1832'>        <span class="nt">&lt;m:nary&gt;</span>&#x000A;</div><div class='line' id='LC1833'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateNaryProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1834'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"chr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1835'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space(child::*[1])"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1836'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC1837'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sMathmlType"</span> <span class="na">select=</span><span class="s">"'munder'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1838'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1839'>          <span class="nt">&lt;m:sub&gt;</span>&#x000A;</div><div class='line' id='LC1840'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1841'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1842'>          <span class="nt">&lt;/m:sub&gt;</span>&#x000A;</div><div class='line' id='LC1843'>          <span class="nt">&lt;m:sup&gt;</span>&#x000A;</div><div class='line' id='LC1844'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1845'>          <span class="nt">&lt;/m:sup&gt;</span>&#x000A;</div><div class='line' id='LC1846'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC1847'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1848'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"NaryHandleMrowMstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1849'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"following-sibling::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1850'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1851'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC1852'>        <span class="nt">&lt;/m:nary&gt;</span>&#x000A;</div><div class='line' id='LC1853'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1854'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1855'>        <span class="c">&lt;!-- Should this munder be interpreted as an OMML m:bar? --&gt;</span>&#x000A;</div><div class='line' id='LC1856'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fIsBar"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1857'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsBar"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1858'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1859'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1860'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1861'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1862'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fIsBar=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1863'>            <span class="nt">&lt;m:bar&gt;</span>&#x000A;</div><div class='line' id='LC1864'>              <span class="nt">&lt;m:barPr&gt;</span>&#x000A;</div><div class='line' id='LC1865'>                <span class="nt">&lt;m:pos</span> <span class="na">m:val=</span><span class="s">"bot"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1866'>              <span class="nt">&lt;/m:barPr&gt;</span>&#x000A;</div><div class='line' id='LC1867'>              <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC1868'>                <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1869'>                <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1870'>              <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC1871'>            <span class="nt">&lt;/m:bar&gt;</span>&#x000A;</div><div class='line' id='LC1872'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1873'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1874'>            <span class="c">&lt;!-- It isn't an integral or underbar, is this a groupChr? --&gt;</span>&#x000A;</div><div class='line' id='LC1875'>            <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fGroupChr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1876'>              <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsGroupChr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1877'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1878'>              <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1879'>            <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC1880'>            <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1881'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fGroupChr=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1882'>                <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:groupChr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1883'>                  <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateGroupChrPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1884'>                    <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"chr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1885'>                      <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"mml:mo"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1886'>                    <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC1887'>                    <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"pos"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1888'>                      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1889'>                        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"child::*[1][self::mml:mrow]"</span><span class="nt">&gt;</span>bot<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1890'>                        <span class="nt">&lt;xsl:otherwise&gt;</span>top<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1891'>                      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1892'>                    <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC1893'>                    <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"vertJc"</span><span class="nt">&gt;</span>top<span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC1894'>                  <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC1895'>                  <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:e"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1896'>                    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"mml:mrow"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1897'>                  <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1898'>                <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1899'>              <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1900'>              <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1901'>                <span class="c">&lt;!-- Generic munder --&gt;</span>&#x000A;</div><div class='line' id='LC1902'>                <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:limLow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1903'>                  <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:e"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1904'>                    <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1905'>                    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1906'>                  <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1907'>                  <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:lim"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1908'>                    <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1909'>                    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1910'>                  <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1911'>                <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1912'>              <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1913'>            <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1914'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1915'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1916'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC1917'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1918'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1919'>&#x000A;</div><div class='line' id='LC1920'>&#x000A;</div><div class='line' id='LC1921'>  <span class="c">&lt;!-- Given the values for chr, pos, and vertJc, create an omml</span>&#x000A;</div><div class='line' id='LC1922'><span class="c">	     groupChr's groupChrPr --&gt;</span>&#x000A;</div><div class='line' id='LC1923'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CreateGroupChrPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1924'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"chr"</span><span class="nt">&gt;</span><span class="ni">&amp;#x23df;</span><span class="nt">&lt;/xsl:param&gt;</span>&#x000A;</div><div class='line' id='LC1925'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"pos"</span> <span class="na">select=</span><span class="s">"bot"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1926'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"vertJc"</span> <span class="na">select=</span><span class="s">"top"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1927'>    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:groupChrPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1928'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:chr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1929'>        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1930'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$chr"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1931'>        <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1932'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1933'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:pos"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1934'>        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1935'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$pos"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1936'>        <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1937'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1938'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:vertJc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1939'>        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1940'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$vertJc"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1941'>        <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC1942'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1943'>    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC1944'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC1945'>&#x000A;</div><div class='line' id='LC1946'>&#x000A;</div><div class='line' id='LC1947'>  <span class="c">&lt;!--</span>&#x000A;</div><div class='line' id='LC1948'><span class="c">      Convert a non-combining character into its upper combining</span>&#x000A;</div><div class='line' id='LC1949'><span class="c">      couterpart.</span>&#x000A;</div><div class='line' id='LC1950'><span class="c">      </span>&#x000A;</div><div class='line' id='LC1951'><span class="c">      { Non-combining, Upper-combining }</span>&#x000A;</div><div class='line' id='LC1952'><span class="c">      {U+02D8, U+0306}, // BREVE</span>&#x000A;</div><div class='line' id='LC1953'><span class="c">      {U+00B8, U+0312}, // CEDILLA</span>&#x000A;</div><div class='line' id='LC1954'><span class="c">      {U+0060, U+0300}, // GRAVE ACCENT</span>&#x000A;</div><div class='line' id='LC1955'><span class="c">      {U+002D, U+0305}, // HYPHEN-MINUS/OVERLINE</span>&#x000A;</div><div class='line' id='LC1956'><span class="c">      {U+2212, U+0305}, // MINUS SIGN/OVERLINE</span>&#x000A;</div><div class='line' id='LC1957'><span class="c">      {U+002E, U+0305}, // FULL STOP/DOT ABOVE</span>&#x000A;</div><div class='line' id='LC1958'><span class="c">      {U+02D9, U+0307}, // DOT ABOVE</span>&#x000A;</div><div class='line' id='LC1959'><span class="c">      {U+02DD, U+030B}, // DOUBLE ACUTE ACCENT</span>&#x000A;</div><div class='line' id='LC1960'><span class="c">      {U+00B4, U+0301}, // ACUTE ACCENT</span>&#x000A;</div><div class='line' id='LC1961'><span class="c">      {U+007E, U+0303}, // TILDE</span>&#x000A;</div><div class='line' id='LC1962'><span class="c">      {U+02DC, U+0303}, // SMALL TILDE</span>&#x000A;</div><div class='line' id='LC1963'><span class="c">      {U+00A8, U+0308}, // DIAERESIS</span>&#x000A;</div><div class='line' id='LC1964'><span class="c">      {U+02C7, U+030C}, // CARON</span>&#x000A;</div><div class='line' id='LC1965'><span class="c">      {U+005E, U+0302}, // CIRCUMFLEX ACCENT</span>&#x000A;</div><div class='line' id='LC1966'><span class="c">      {U+00AF, U+0305}, // MACRON</span>&#x000A;</div><div class='line' id='LC1967'><span class="c">      {U+005F, ::::::}, // LOW LINE</span>&#x000A;</div><div class='line' id='LC1968'><span class="c">      {U+2192, U+20D7}, // RIGHTWARDS ARROW</span>&#x000A;</div><div class='line' id='LC1969'><span class="c">      {U+27F6, U+20D7}, // LONG RIGHTWARDS ARROW</span>&#x000A;</div><div class='line' id='LC1970'><span class="c">      {U+2190, U+20D6}, // LEFT ARROW</span>&#x000A;</div><div class='line' id='LC1971'><span class="c">  --&gt;</span>&#x000A;</div><div class='line' id='LC1972'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"ToUpperCombining"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC1973'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ch"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC1974'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC1975'>      <span class="c">&lt;!-- BREVE --&gt;</span>&#x000A;</div><div class='line' id='LC1976'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x02D8;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0306;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1977'>      <span class="c">&lt;!-- CEDILLA --&gt;</span>&#x000A;</div><div class='line' id='LC1978'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x00B8;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0312;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1979'>      <span class="c">&lt;!-- GRAVE ACCENT --&gt;</span>&#x000A;</div><div class='line' id='LC1980'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x0060;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0300;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1981'>      <span class="c">&lt;!-- HYPHEN-MINUS/OVERLINE --&gt;</span>&#x000A;</div><div class='line' id='LC1982'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x002D;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0305;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1983'>      <span class="c">&lt;!-- MINUS SIGN/OVERLINE --&gt;</span>&#x000A;</div><div class='line' id='LC1984'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x2212;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0305;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1985'>      <span class="c">&lt;!-- FULL STOP/DOT ABOVE --&gt;</span>&#x000A;</div><div class='line' id='LC1986'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x002E;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0307;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1987'>      <span class="c">&lt;!-- DOT ABOVE --&gt;</span>&#x000A;</div><div class='line' id='LC1988'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x02D9;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0307;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1989'>      <span class="c">&lt;!-- DOUBLE ACUTE ACCENT --&gt;</span>&#x000A;</div><div class='line' id='LC1990'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x02DD;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x030B;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1991'>      <span class="c">&lt;!-- ACUTE ACCENT --&gt;</span>&#x000A;</div><div class='line' id='LC1992'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x00B4;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0301;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1993'>      <span class="c">&lt;!-- TILDE --&gt;</span>&#x000A;</div><div class='line' id='LC1994'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x007E;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0303;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1995'>      <span class="c">&lt;!-- SMALL TILDE --&gt;</span>&#x000A;</div><div class='line' id='LC1996'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x02DC;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0303;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1997'>      <span class="c">&lt;!-- DIAERESIS --&gt;</span>&#x000A;</div><div class='line' id='LC1998'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x00A8;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0308;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC1999'>      <span class="c">&lt;!-- CARON --&gt;</span>&#x000A;</div><div class='line' id='LC2000'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x02C7;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x030C;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2001'>      <span class="c">&lt;!-- CIRCUMFLEX ACCENT --&gt;</span>&#x000A;</div><div class='line' id='LC2002'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x005E;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0302;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2003'>      <span class="c">&lt;!-- MACRON --&gt;</span>&#x000A;</div><div class='line' id='LC2004'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x00AF;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x0305;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2005'>      &#x000A;</div><div class='line' id='LC2006'>      <span class="c">&lt;!-- LOW LINE --&gt;</span>&#x000A;</div><div class='line' id='LC2007'>      &#x000A;</div><div class='line' id='LC2008'>      <span class="c">&lt;!-- RIGHTWARDS ARROW --&gt;</span>&#x000A;</div><div class='line' id='LC2009'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x2192;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x20D7;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2010'>      <span class="c">&lt;!-- LONG RIGHTWARDS ARROW --&gt;</span>&#x000A;</div><div class='line' id='LC2011'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x27F6;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x20D7;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2012'>      <span class="c">&lt;!-- LEFT ARROW --&gt;</span>&#x000A;</div><div class='line' id='LC2013'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ch='&amp;#x2190;'"</span><span class="nt">&gt;</span><span class="ni">&amp;#x20D6;</span><span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2014'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2015'>        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$ch"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2016'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2017'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2018'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2019'>&#x000A;</div><div class='line' id='LC2020'>&#x000A;</div><div class='line' id='LC2021'>  <span class="c">&lt;!-- %%Template: match mover</span>&#x000A;</div><div class='line' id='LC2022'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2023'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mover"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2024'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2025'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"isNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2026'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2027'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2028'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2029'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2030'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fNary='true'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2031'>        <span class="nt">&lt;m:nary&gt;</span>&#x000A;</div><div class='line' id='LC2032'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateNaryProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2033'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"chr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2034'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space(child::*[1])"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2035'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2036'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sMathmlType"</span> <span class="na">select=</span><span class="s">"'mover'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2037'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2038'>          <span class="nt">&lt;m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2039'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2040'>          <span class="nt">&lt;/m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2041'>          <span class="nt">&lt;m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2042'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2043'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2044'>          <span class="nt">&lt;/m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2045'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2046'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2047'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"NaryHandleMrowMstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2048'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"following-sibling::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2049'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2050'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2051'>        <span class="nt">&lt;/m:nary&gt;</span>&#x000A;</div><div class='line' id='LC2052'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2053'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2054'>        <span class="c">&lt;!-- Should this munder be interpreted as an OMML m:bar or m:acc? --&gt;</span>&#x000A;</div><div class='line' id='LC2055'>&#x000A;</div><div class='line' id='LC2056'>        <span class="c">&lt;!-- Check to see if this is an m:bar --&gt;</span>&#x000A;</div><div class='line' id='LC2057'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fIsBar"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2058'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsBar"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2059'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2060'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2061'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2062'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2063'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fIsBar = 1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2064'>            <span class="nt">&lt;m:bar&gt;</span>&#x000A;</div><div class='line' id='LC2065'>              <span class="nt">&lt;m:barPr&gt;</span>&#x000A;</div><div class='line' id='LC2066'>                <span class="nt">&lt;m:pos</span> <span class="na">m:val=</span><span class="s">"top"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2067'>              <span class="nt">&lt;/m:barPr&gt;</span>&#x000A;</div><div class='line' id='LC2068'>              <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2069'>                <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2070'>                <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2071'>              <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2072'>            <span class="nt">&lt;/m:bar&gt;</span>&#x000A;</div><div class='line' id='LC2073'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2074'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2075'>            <span class="c">&lt;!-- Not an m:bar, should it be an m:acc? --&gt;</span>&#x000A;</div><div class='line' id='LC2076'>            <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fIsAcc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2077'>              <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsAcc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2078'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2079'>              <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2080'>            <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2081'>            <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2082'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fIsAcc=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2083'>                <span class="nt">&lt;m:acc&gt;</span>&#x000A;</div><div class='line' id='LC2084'>                  <span class="nt">&lt;m:accPr&gt;</span>&#x000A;</div><div class='line' id='LC2085'>                    <span class="nt">&lt;m:chr&gt;</span>&#x000A;</div><div class='line' id='LC2086'>                      <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"ch"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2087'>                        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2088'>                      <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2089'>                      <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"chComb"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2090'>                        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"ToUpperCombining"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2091'>                          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ch"</span> <span class="na">select=</span><span class="s">"$ch"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2092'>                        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2093'>                      <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2094'>                      <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2095'>                        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$chComb"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2096'>                      <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC2097'>                    <span class="nt">&lt;/m:chr&gt;</span>&#x000A;</div><div class='line' id='LC2098'>                  <span class="nt">&lt;/m:accPr&gt;</span>&#x000A;</div><div class='line' id='LC2099'>                  <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2100'>                    <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2101'>                    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2102'>                  <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2103'>                <span class="nt">&lt;/m:acc&gt;</span>&#x000A;</div><div class='line' id='LC2104'>              <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2105'>              <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2106'>                <span class="c">&lt;!-- This isn't an integral, overbar or accent, </span>&#x000A;</div><div class='line' id='LC2107'><span class="c">								     could it be a groupChr? --&gt;</span>&#x000A;</div><div class='line' id='LC2108'>                <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fGroupChr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2109'>                  <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsGroupChr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2110'>                    <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2111'>                  <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2112'>                <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2113'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2114'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fGroupChr=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2115'>                    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:groupChr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2116'>                      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateGroupChrPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2117'>                        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"chr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2118'>                          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"mml:mo"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2119'>                        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2120'>                        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"pos"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2121'>                          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2122'>                            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"child::*[1][self::mml:mrow]"</span><span class="nt">&gt;</span>top<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2123'>                            <span class="nt">&lt;xsl:otherwise&gt;</span>bot<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2124'>                          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2125'>                        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2126'>                        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"vertJc"</span><span class="nt">&gt;</span>bot<span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2127'>                      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2128'>                      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:e"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2129'>                        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"mml:mrow"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2130'>                      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2131'>                    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2132'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2133'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2134'>                    <span class="c">&lt;!-- Generic mover --&gt;</span>&#x000A;</div><div class='line' id='LC2135'>                    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:limUpp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2136'>                      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:e"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2137'>                        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2138'>                        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2139'>                      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2140'>                      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:lim"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2141'>                        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2142'>                        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2143'>                      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2144'>                    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2145'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2146'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2147'>              <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2148'>            <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2149'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2150'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2151'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2152'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2153'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2154'>&#x000A;</div><div class='line' id='LC2155'>&#x000A;</div><div class='line' id='LC2156'>  <span class="c">&lt;!-- %%Template: match munderover</span>&#x000A;</div><div class='line' id='LC2157'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2158'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:munderover"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2159'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2160'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"isNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2161'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2162'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2163'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2164'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2165'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fNary='true'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2166'>        <span class="nt">&lt;m:nary&gt;</span>&#x000A;</div><div class='line' id='LC2167'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateNaryProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2168'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"chr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2169'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space(child::*[1])"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2170'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2171'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sMathmlType"</span> <span class="na">select=</span><span class="s">"'munderover'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2172'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2173'>          <span class="nt">&lt;m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2174'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2175'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2176'>          <span class="nt">&lt;/m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2177'>          <span class="nt">&lt;m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2178'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2179'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[3]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2180'>          <span class="nt">&lt;/m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2181'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2182'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2183'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"NaryHandleMrowMstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2184'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"following-sibling::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2185'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2186'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2187'>        <span class="nt">&lt;/m:nary&gt;</span>&#x000A;</div><div class='line' id='LC2188'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2189'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2190'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:limUpp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2191'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:e"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2192'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2193'>            <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:limLow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2194'>              <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:e"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2195'>                <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2196'>                <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2197'>              <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2198'>              <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:lim"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2199'>                <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2200'>                <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2201'>              <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2202'>            <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2203'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2204'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:lim"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2205'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2206'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[3]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2207'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2208'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2209'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2210'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2211'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2212'>&#x000A;</div><div class='line' id='LC2213'>  <span class="c">&lt;!-- %%Template: match mfenced --&gt;</span>&#x000A;</div><div class='line' id='LC2214'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mfenced"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2215'>    <span class="nt">&lt;m:d&gt;</span>&#x000A;</div><div class='line' id='LC2216'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateDelimProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2217'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fChOpenValid"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2218'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2219'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@open"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2220'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"1"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2221'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2222'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mml:open"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2223'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"1"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2224'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2225'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2226'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"0"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2227'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2228'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2229'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2230'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"chOpen"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2231'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2232'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@open"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2233'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@open"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2234'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2235'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2236'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:open"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2237'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2238'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2239'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2240'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fChSeparatorsValid"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2241'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2242'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@separators"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2243'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"1"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2244'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2245'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mml:separators"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2246'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"1"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2247'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2248'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2249'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"0"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2250'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2251'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2252'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2253'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"chSeparators"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2254'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2255'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@separators"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2256'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@separators"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2257'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2258'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2259'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:separators"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2260'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2261'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2262'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2263'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fChCloseValid"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2264'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2265'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@close"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2266'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"1"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2267'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2268'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mml:close"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2269'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"1"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2270'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2271'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2272'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"0"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2273'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2274'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2275'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2276'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"chClose"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2277'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2278'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@close"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2279'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@close"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2280'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2281'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2282'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:close"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2283'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2284'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2285'>        <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2286'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2287'>      <span class="nt">&lt;xsl:for-each</span> <span class="na">select=</span><span class="s">"*"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2288'>        <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2289'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2290'>          <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"."</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2291'>        <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2292'>      <span class="nt">&lt;/xsl:for-each&gt;</span>&#x000A;</div><div class='line' id='LC2293'>    <span class="nt">&lt;/m:d&gt;</span>&#x000A;</div><div class='line' id='LC2294'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2295'>&#x000A;</div><div class='line' id='LC2296'>  <span class="c">&lt;!-- %%Template: CreateDelimProp</span>&#x000A;</div><div class='line' id='LC2297'><span class="c">	</span>&#x000A;</div><div class='line' id='LC2298'><span class="c">		Given the characters to use as open, close and separators for </span>&#x000A;</div><div class='line' id='LC2299'><span class="c">		the delim object, create the m:dPr (delim properties). 		</span>&#x000A;</div><div class='line' id='LC2300'><span class="c">		</span>&#x000A;</div><div class='line' id='LC2301'><span class="c">		MathML can have any number of separators in an mfenced object, but </span>&#x000A;</div><div class='line' id='LC2302'><span class="c">		OMML can only represent one separator for each d (delim) object.</span>&#x000A;</div><div class='line' id='LC2303'><span class="c">		So, we pick the first separator specified. 		</span>&#x000A;</div><div class='line' id='LC2304'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2305'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CreateDelimProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2306'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fChOpenValid"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2307'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"chOpen"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2308'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fChSeparatorsValid"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2309'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"chSeparators"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2310'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fChCloseValid"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2311'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"chClose"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2312'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"chSep"</span> <span class="na">select=</span><span class="s">"substring($chSeparators, 1, 1)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2313'>&#x000A;</div><div class='line' id='LC2314'>    <span class="c">&lt;!-- do we need a dPr at all? If everything's at its default value, then </span>&#x000A;</div><div class='line' id='LC2315'><span class="c">			don't bother at all --&gt;</span>&#x000A;</div><div class='line' id='LC2316'>    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"($fChOpenValid=1 and not($chOpen = '(')) or</span>&#x000A;</div><div class='line' id='LC2317'><span class="s">						  ($fChCloseValid=1 and not($chClose = ')')) or </span>&#x000A;</div><div class='line' id='LC2318'><span class="s">						  not($chSep = '|')"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2319'>      <span class="nt">&lt;m:dPr&gt;</span>&#x000A;</div><div class='line' id='LC2320'>        <span class="c">&lt;!-- the default for MathML and OMML is '('. --&gt;</span>&#x000A;</div><div class='line' id='LC2321'>        <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fChOpenValid=1 and not($chOpen = '(')"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2322'>          <span class="nt">&lt;m:begChr&gt;</span>&#x000A;</div><div class='line' id='LC2323'>            <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2324'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$chOpen"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2325'>            <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC2326'>          <span class="nt">&lt;/m:begChr&gt;</span>&#x000A;</div><div class='line' id='LC2327'>        <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC2328'>&#x000A;</div><div class='line' id='LC2329'>        <span class="c">&lt;!-- the default for MathML is ',' and for OMML is '|' --&gt;</span>&#x000A;</div><div class='line' id='LC2330'>&#x000A;</div><div class='line' id='LC2331'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2332'>          <span class="c">&lt;!-- matches OMML's default, don't bother to write anything out --&gt;</span>&#x000A;</div><div class='line' id='LC2333'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$chSep = '|'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2334'>&#x000A;</div><div class='line' id='LC2335'>          <span class="c">&lt;!-- Not specified, use MathML's default. We test against </span>&#x000A;</div><div class='line' id='LC2336'><span class="c">					the existence of the actual attribute, not the substring --&gt;</span>&#x000A;</div><div class='line' id='LC2337'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fChSeparatorsValid=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2338'>            <span class="nt">&lt;m:sepChr</span> <span class="na">m:val=</span><span class="s">','</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2339'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2340'>&#x000A;</div><div class='line' id='LC2341'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2342'>            <span class="nt">&lt;m:sepChr&gt;</span>&#x000A;</div><div class='line' id='LC2343'>              <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2344'>                <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$chSep"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2345'>              <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC2346'>            <span class="nt">&lt;/m:sepChr&gt;</span>&#x000A;</div><div class='line' id='LC2347'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2348'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2349'>&#x000A;</div><div class='line' id='LC2350'>        <span class="c">&lt;!-- the default for MathML and OMML is ')'. --&gt;</span>&#x000A;</div><div class='line' id='LC2351'>        <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fChCloseValid=1 and not($chClose = ')')"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2352'>          <span class="nt">&lt;m:endChr&gt;</span>&#x000A;</div><div class='line' id='LC2353'>            <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2354'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$chClose"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2355'>            <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC2356'>          <span class="nt">&lt;/m:endChr&gt;</span>&#x000A;</div><div class='line' id='LC2357'>        <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC2358'>      <span class="nt">&lt;/m:dPr&gt;</span>&#x000A;</div><div class='line' id='LC2359'>    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC2360'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2361'>&#x000A;</div><div class='line' id='LC2362'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"LQuoteFromMs"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2363'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"msCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2364'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2365'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"(not($msCur/@lquote) or $msCur/@lquote='')</span>&#x000A;</div><div class='line' id='LC2366'><span class="s">                      and (not($msCur/@mml:lquote) or $msCur/@mml:lquote='')"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2367'>        <span class="nt">&lt;xsl:text&gt;</span>"<span class="nt">&lt;/xsl:text&gt;</span>&#x000A;</div><div class='line' id='LC2368'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2369'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2370'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2371'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$msCur/@lquote"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2372'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$msCur/@lquote"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2373'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2374'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2375'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$msCur/@mml:lquote"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2376'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2377'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2378'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2379'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2380'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2381'>&#x000A;</div><div class='line' id='LC2382'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"RQuoteFromMs"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2383'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"msCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2384'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2385'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"(not($msCur/@rquote) or $msCur/@rquote='')</span>&#x000A;</div><div class='line' id='LC2386'><span class="s">                       and (not($msCur/@mml:rquote) or $msCur/@mml:rquote='')"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2387'>        <span class="nt">&lt;xsl:text&gt;</span>"<span class="nt">&lt;/xsl:text&gt;</span>&#x000A;</div><div class='line' id='LC2388'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2389'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2390'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2391'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$msCur/@rquote"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2392'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$msCur/@rquote"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2393'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2394'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2395'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$msCur/@mml:rquote"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2396'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2397'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2398'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2399'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2400'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2401'>&#x000A;</div><div class='line' id='LC2402'>  <span class="c">&lt;!-- %%Template: OutputMs</span>&#x000A;</div><div class='line' id='LC2403'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2404'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"OutputMs"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2405'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"msCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2406'>&#x000A;</div><div class='line' id='LC2407'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"chLquote"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2408'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"LQuoteFromMs"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2409'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"msCur"</span> <span class="na">select=</span><span class="s">"$msCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2410'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2411'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2412'>&#x000A;</div><div class='line' id='LC2413'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"chRquote"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2414'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"RQuoteFromMs"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2415'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"msCur"</span> <span class="na">select=</span><span class="s">"$msCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2416'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2417'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2418'>&#x000A;</div><div class='line' id='LC2419'>    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$chLquote"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2420'>    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space($msCur)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2421'>    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$chRquote"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2422'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2423'>&#x000A;</div><div class='line' id='LC2424'>  <span class="c">&lt;!-- %%Template: match msub</span>&#x000A;</div><div class='line' id='LC2425'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2426'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:msub"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2427'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2428'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"isNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2429'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2430'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2431'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2432'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2433'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fNary='true'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2434'>        <span class="nt">&lt;m:nary&gt;</span>&#x000A;</div><div class='line' id='LC2435'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateNaryProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2436'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"chr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2437'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space(child::*[1])"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2438'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2439'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sMathmlType"</span> <span class="na">select=</span><span class="s">"'msub'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2440'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2441'>          <span class="nt">&lt;m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2442'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2443'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2444'>          <span class="nt">&lt;/m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2445'>          <span class="nt">&lt;m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2446'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2447'>          <span class="nt">&lt;/m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2448'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2449'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2450'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"NaryHandleMrowMstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2451'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"following-sibling::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2452'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2453'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2454'>        <span class="nt">&lt;/m:nary&gt;</span>&#x000A;</div><div class='line' id='LC2455'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2456'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2457'>        <span class="nt">&lt;m:sSub&gt;</span>&#x000A;</div><div class='line' id='LC2458'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2459'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2460'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2461'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2462'>          <span class="nt">&lt;m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2463'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2464'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2465'>          <span class="nt">&lt;/m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2466'>        <span class="nt">&lt;/m:sSub&gt;</span>&#x000A;</div><div class='line' id='LC2467'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2468'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2469'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2470'>&#x000A;</div><div class='line' id='LC2471'>  <span class="c">&lt;!-- %%Template: match msup</span>&#x000A;</div><div class='line' id='LC2472'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2473'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:msup"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2474'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2475'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"isNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2476'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2477'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2478'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2479'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2480'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fNary='true'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2481'>        <span class="nt">&lt;m:nary&gt;</span>&#x000A;</div><div class='line' id='LC2482'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateNaryProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2483'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"chr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2484'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space(child::*[1])"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2485'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2486'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sMathmlType"</span> <span class="na">select=</span><span class="s">"'msup'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2487'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2488'>          <span class="nt">&lt;m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2489'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2490'>          <span class="nt">&lt;/m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2491'>          <span class="nt">&lt;m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2492'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2493'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2494'>          <span class="nt">&lt;/m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2495'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2496'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2497'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"NaryHandleMrowMstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2498'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"following-sibling::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2499'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2500'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2501'>        <span class="nt">&lt;/m:nary&gt;</span>&#x000A;</div><div class='line' id='LC2502'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2503'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2504'>        <span class="nt">&lt;m:sSup&gt;</span>&#x000A;</div><div class='line' id='LC2505'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2506'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2507'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2508'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2509'>          <span class="nt">&lt;m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2510'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2511'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2512'>          <span class="nt">&lt;/m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2513'>        <span class="nt">&lt;/m:sSup&gt;</span>&#x000A;</div><div class='line' id='LC2514'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2515'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2516'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2517'>&#x000A;</div><div class='line' id='LC2518'>  <span class="c">&lt;!-- %%Template: match msubsup</span>&#x000A;</div><div class='line' id='LC2519'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2520'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:msubsup"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2521'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2522'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"isNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2523'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2524'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2525'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2526'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2527'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fNary='true'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2528'>        <span class="nt">&lt;m:nary&gt;</span>&#x000A;</div><div class='line' id='LC2529'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateNaryProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2530'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"chr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2531'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space(child::*[1])"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2532'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC2533'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sMathmlType"</span> <span class="na">select=</span><span class="s">"'msubsup'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2534'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2535'>          <span class="nt">&lt;m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2536'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2537'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2538'>          <span class="nt">&lt;/m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2539'>          <span class="nt">&lt;m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2540'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2541'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[3]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2542'>          <span class="nt">&lt;/m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2543'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2544'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2545'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"NaryHandleMrowMstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2546'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"following-sibling::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2547'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2548'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2549'>        <span class="nt">&lt;/m:nary&gt;</span>&#x000A;</div><div class='line' id='LC2550'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2551'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2552'>        <span class="nt">&lt;m:sSubSup&gt;</span>&#x000A;</div><div class='line' id='LC2553'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2554'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2555'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2556'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2557'>          <span class="nt">&lt;m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2558'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2559'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[2]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2560'>          <span class="nt">&lt;/m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2561'>          <span class="nt">&lt;m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2562'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2563'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[3]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2564'>          <span class="nt">&lt;/m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2565'>        <span class="nt">&lt;/m:sSubSup&gt;</span>&#x000A;</div><div class='line' id='LC2566'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2567'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2568'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2569'>&#x000A;</div><div class='line' id='LC2570'>  <span class="c">&lt;!-- %%Template: SplitScripts </span>&#x000A;</div><div class='line' id='LC2571'><span class="c">	</span>&#x000A;</div><div class='line' id='LC2572'><span class="c">		Takes an collection of nodes, and splits them</span>&#x000A;</div><div class='line' id='LC2573'><span class="c">		odd and even into sup and sub scripts. Used for dealing with</span>&#x000A;</div><div class='line' id='LC2574'><span class="c">		mmultiscript.</span>&#x000A;</div><div class='line' id='LC2575'><span class="c">		</span>&#x000A;</div><div class='line' id='LC2576'><span class="c">		This template assumes you want to output both a sub and sup element.</span>&#x000A;</div><div class='line' id='LC2577'><span class="c">		--&gt;</span>&#x000A;</div><div class='line' id='LC2578'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"SplitScripts"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2579'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndScripts"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2580'>    <span class="nt">&lt;m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2581'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2582'>      <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"$ndScripts[(position() mod 2) = 1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2583'>    <span class="nt">&lt;/m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2584'>    <span class="nt">&lt;m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2585'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2586'>      <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"$ndScripts[(position() mod 2) = 0]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2587'>    <span class="nt">&lt;/m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2588'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2589'>&#x000A;</div><div class='line' id='LC2590'>  <span class="c">&lt;!-- %%Template: match mmultiscripts</span>&#x000A;</div><div class='line' id='LC2591'><span class="c">	</span>&#x000A;</div><div class='line' id='LC2592'><span class="c">		There is some subtlety with the mml:mprescripts element. Everything that comes before </span>&#x000A;</div><div class='line' id='LC2593'><span class="c">		that is considered a script (as opposed to a pre-script), but it need not be present.</span>&#x000A;</div><div class='line' id='LC2594'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2595'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mmultiscripts"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2596'>&#x000A;</div><div class='line' id='LC2597'>    <span class="c">&lt;!-- count the nodes. Everything that comes after a mml:mprescripts is considered a pre-script;</span>&#x000A;</div><div class='line' id='LC2598'><span class="c">			Everything that does not have an mml:mprescript as a preceding-sibling (and is not itself </span>&#x000A;</div><div class='line' id='LC2599'><span class="c">			mml:mprescript) is a script, except for the first child which is always the base.</span>&#x000A;</div><div class='line' id='LC2600'><span class="c">			The mml:none element is a place holder for a sub/sup element slot.</span>&#x000A;</div><div class='line' id='LC2601'><span class="c">			</span>&#x000A;</div><div class='line' id='LC2602'><span class="c">			mmultisript pattern:</span>&#x000A;</div><div class='line' id='LC2603'><span class="c">			&lt;mmultiscript&gt;</span>&#x000A;</div><div class='line' id='LC2604'><span class="c">				(base)</span>&#x000A;</div><div class='line' id='LC2605'><span class="c">				(sub sup)* // Where &lt;none/&gt; can replace a sub/sup entry to preserve pattern.</span>&#x000A;</div><div class='line' id='LC2606'><span class="c">				&lt;mprescripts /&gt;</span>&#x000A;</div><div class='line' id='LC2607'><span class="c">				(presub presup)*</span>&#x000A;</div><div class='line' id='LC2608'><span class="c">			&lt;/mmultiscript&gt;</span>&#x000A;</div><div class='line' id='LC2609'><span class="c">			--&gt;</span>&#x000A;</div><div class='line' id='LC2610'>    <span class="c">&lt;!-- Count of presecript nodes that we'd print (this is essentially anything but the none placeholder. --&gt;</span>&#x000A;</div><div class='line' id='LC2611'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"cndPrescriptStrict"</span> <span class="na">select=</span><span class="s">"count(mml:mprescripts[1]/following-sibling::*[not(self::mml:none)])"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2612'>    <span class="c">&lt;!-- Count of all super script excluding mml:none --&gt;</span>&#x000A;</div><div class='line' id='LC2613'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"cndSuperScript"</span> <span class="na">select=</span><span class="s">"count(*[not(preceding-sibling::mml:mprescripts)</span>&#x000A;</div><div class='line' id='LC2614'><span class="s">																														and not(self::mml:mprescripts)</span>&#x000A;</div><div class='line' id='LC2615'><span class="s">																														and ((position() mod 2) = 1) </span>&#x000A;</div><div class='line' id='LC2616'><span class="s">																														and not(self::mml:none)]) - 1"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2617'>    <span class="c">&lt;!-- Count of all sup script excluding mml:none --&gt;</span>&#x000A;</div><div class='line' id='LC2618'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"cndSubScript"</span> <span class="na">select=</span><span class="s">"count(*[not(preceding-sibling::mml:mprescripts)</span>&#x000A;</div><div class='line' id='LC2619'><span class="s">																														and not(self::mml:mprescripts)</span>&#x000A;</div><div class='line' id='LC2620'><span class="s">																														and ((position() mod 2) = 0) </span>&#x000A;</div><div class='line' id='LC2621'><span class="s">																														and not(self::mml:none)])"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2622'>    <span class="c">&lt;!-- Count of all scripts excluding mml:none --&gt;</span>&#x000A;</div><div class='line' id='LC2623'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"cndScriptStrict"</span> <span class="na">select=</span><span class="s">"$cndSuperScript + $cndSubScript"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2624'>    <span class="c">&lt;!-- Count of all scripts including mml:none.  This is essentially all nodes before the </span>&#x000A;</div><div class='line' id='LC2625'><span class="c">		first mml:mprescripts except the base. --&gt;</span>&#x000A;</div><div class='line' id='LC2626'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"cndScript"</span> <span class="na">select=</span><span class="s">"count(*[not(preceding-sibling::mml:mprescripts) and not(self::mml:mprescripts)]) - 1"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2627'>&#x000A;</div><div class='line' id='LC2628'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2629'>      <span class="c">&lt;!-- The easy case first. No prescripts, and no script ... just a base --&gt;</span>&#x000A;</div><div class='line' id='LC2630'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$cndPrescriptStrict &amp;lt;= 0 and $cndScriptStrict &amp;lt;= 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2631'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2632'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2633'>&#x000A;</div><div class='line' id='LC2634'>      <span class="c">&lt;!-- Next, if there are no prescripts --&gt;</span>&#x000A;</div><div class='line' id='LC2635'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$cndPrescriptStrict &amp;lt;= 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2636'>        <span class="c">&lt;!-- we know we have some scripts or else we would have taken the earlier</span>&#x000A;</div><div class='line' id='LC2637'><span class="c">					  branch. --&gt;</span>&#x000A;</div><div class='line' id='LC2638'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2639'>          <span class="c">&lt;!-- We have both sub and super scripts--&gt;</span>&#x000A;</div><div class='line' id='LC2640'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$cndSuperScript &amp;gt; 0 and $cndSubScript &amp;gt; 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2641'>            <span class="nt">&lt;m:sSubSup&gt;</span>&#x000A;</div><div class='line' id='LC2642'>              <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2643'>                <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2644'>                <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2645'>              <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2646'>&#x000A;</div><div class='line' id='LC2647'>              <span class="c">&lt;!-- Every child except the first is a script.  Do the split --&gt;</span>&#x000A;</div><div class='line' id='LC2648'>              <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"SplitScripts"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2649'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndScripts"</span> <span class="na">select=</span><span class="s">"*[position() &amp;gt; 1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2650'>              <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2651'>            <span class="nt">&lt;/m:sSubSup&gt;</span>&#x000A;</div><div class='line' id='LC2652'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2653'>          <span class="c">&lt;!-- Just a sub script --&gt;</span>&#x000A;</div><div class='line' id='LC2654'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$cndSubScript &amp;gt; 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2655'>            <span class="nt">&lt;m:sSub&gt;</span>&#x000A;</div><div class='line' id='LC2656'>              <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2657'>                <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2658'>                <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2659'>              <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2660'>&#x000A;</div><div class='line' id='LC2661'>              <span class="c">&lt;!-- No prescripts and no super scripts, therefore, it's a sub. --&gt;</span>&#x000A;</div><div class='line' id='LC2662'>              <span class="nt">&lt;m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2663'>                <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*[position() &amp;gt; 1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2664'>              <span class="nt">&lt;/m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2665'>            <span class="nt">&lt;/m:sSub&gt;</span>&#x000A;</div><div class='line' id='LC2666'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2667'>          <span class="c">&lt;!-- Just super script --&gt;</span>&#x000A;</div><div class='line' id='LC2668'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2669'>            <span class="nt">&lt;m:sSup&gt;</span>&#x000A;</div><div class='line' id='LC2670'>              <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2671'>                <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2672'>                <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2673'>              <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2674'>&#x000A;</div><div class='line' id='LC2675'>              <span class="c">&lt;!-- No prescripts and no sub scripts, therefore, it's a sup. --&gt;</span>&#x000A;</div><div class='line' id='LC2676'>              <span class="nt">&lt;m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2677'>                <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*[position() &amp;gt; 1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2678'>              <span class="nt">&lt;/m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2679'>            <span class="nt">&lt;/m:sSup&gt;</span>&#x000A;</div><div class='line' id='LC2680'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2681'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2682'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2683'>&#x000A;</div><div class='line' id='LC2684'>      <span class="c">&lt;!-- Next, if there are no scripts --&gt;</span>&#x000A;</div><div class='line' id='LC2685'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$cndScriptStrict &amp;lt;= 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2686'>        <span class="c">&lt;!-- we know we have some prescripts or else we would have taken the earlier</span>&#x000A;</div><div class='line' id='LC2687'><span class="c">					  branch. So, create an sPre and split the elements --&gt;</span>&#x000A;</div><div class='line' id='LC2688'>        <span class="nt">&lt;m:sPre&gt;</span>&#x000A;</div><div class='line' id='LC2689'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2690'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2691'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2692'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2693'>&#x000A;</div><div class='line' id='LC2694'>          <span class="c">&lt;!-- The prescripts come after the mml:mprescript and if we get here</span>&#x000A;</div><div class='line' id='LC2695'><span class="c">							we know there exists some elements after the mml:mprescript element. </span>&#x000A;</div><div class='line' id='LC2696'><span class="c">							</span>&#x000A;</div><div class='line' id='LC2697'><span class="c">							The prescript element has no sub/subsup variation, therefore, even if</span>&#x000A;</div><div class='line' id='LC2698'><span class="c">							we're only writing sub, we need to write out both the sub and sup element.</span>&#x000A;</div><div class='line' id='LC2699'><span class="c">							--&gt;</span>&#x000A;</div><div class='line' id='LC2700'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"SplitScripts"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2701'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndScripts"</span> <span class="na">select=</span><span class="s">"mml:mprescripts[1]/following-sibling::*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2702'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2703'>        <span class="nt">&lt;/m:sPre&gt;</span>&#x000A;</div><div class='line' id='LC2704'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2705'>&#x000A;</div><div class='line' id='LC2706'>      <span class="c">&lt;!-- Finally, the case with both prescripts and scripts. Create an sPre </span>&#x000A;</div><div class='line' id='LC2707'><span class="c">				element to house the prescripts, with a sub/sup/subsup element at its base. --&gt;</span>&#x000A;</div><div class='line' id='LC2708'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2709'>        <span class="nt">&lt;m:sPre&gt;</span>&#x000A;</div><div class='line' id='LC2710'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2711'>            <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2712'>              <span class="c">&lt;!-- We have both sub and super scripts--&gt;</span>&#x000A;</div><div class='line' id='LC2713'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$cndSuperScript &amp;gt; 0 and $cndSubScript &amp;gt; 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2714'>                <span class="nt">&lt;m:sSubSup&gt;</span>&#x000A;</div><div class='line' id='LC2715'>                  <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2716'>                    <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2717'>                    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2718'>                  <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2719'>&#x000A;</div><div class='line' id='LC2720'>                  <span class="c">&lt;!-- scripts come before the mml:mprescript but after the first child, so their</span>&#x000A;</div><div class='line' id='LC2721'><span class="c">								 positions will be 2, 3, ... ($nndScript + 1) --&gt;</span>&#x000A;</div><div class='line' id='LC2722'>                  <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"SplitScripts"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2723'>                    <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndScripts"</span> <span class="na">select=</span><span class="s">"*[(position() &amp;gt; 1) and (position() &amp;lt;= ($cndScript + 1))]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2724'>                  <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2725'>                <span class="nt">&lt;/m:sSubSup&gt;</span>&#x000A;</div><div class='line' id='LC2726'>              <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2727'>              <span class="c">&lt;!-- Just a sub script --&gt;</span>&#x000A;</div><div class='line' id='LC2728'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$cndSubScript &amp;gt; 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2729'>                <span class="nt">&lt;m:sSub&gt;</span>&#x000A;</div><div class='line' id='LC2730'>                  <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2731'>                    <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2732'>                    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2733'>                  <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2734'>&#x000A;</div><div class='line' id='LC2735'>                  <span class="c">&lt;!-- We have prescripts but no super scripts, therefore, do a sub </span>&#x000A;</div><div class='line' id='LC2736'><span class="c">									and apply templates to all tokens counted by cndScript. --&gt;</span>&#x000A;</div><div class='line' id='LC2737'>                  <span class="nt">&lt;m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2738'>                    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*[position() &amp;gt; 1 and (position() &amp;lt;= ($cndScript + 1))]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2739'>                  <span class="nt">&lt;/m:sub&gt;</span>&#x000A;</div><div class='line' id='LC2740'>                <span class="nt">&lt;/m:sSub&gt;</span>&#x000A;</div><div class='line' id='LC2741'>              <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2742'>              <span class="c">&lt;!-- Just super script --&gt;</span>&#x000A;</div><div class='line' id='LC2743'>              <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2744'>                <span class="nt">&lt;m:sSup&gt;</span>&#x000A;</div><div class='line' id='LC2745'>                  <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC2746'>                    <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateArgProp"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2747'>                    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"child::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2748'>                  <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2749'>&#x000A;</div><div class='line' id='LC2750'>                  <span class="c">&lt;!-- We have prescripts but no sub scripts, therefore, do a sub </span>&#x000A;</div><div class='line' id='LC2751'><span class="c">									and apply templates to all tokens counted by cndScript. --&gt;</span>&#x000A;</div><div class='line' id='LC2752'>                  <span class="nt">&lt;m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2753'>                    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*[position() &amp;gt; 1 and (position() &amp;lt;= ($cndScript + 1))]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2754'>                  <span class="nt">&lt;/m:sup&gt;</span>&#x000A;</div><div class='line' id='LC2755'>                <span class="nt">&lt;/m:sSup&gt;</span>&#x000A;</div><div class='line' id='LC2756'>              <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2757'>            <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2758'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC2759'>&#x000A;</div><div class='line' id='LC2760'>          <span class="c">&lt;!-- The prescripts come after the mml:mprescript and if we get here</span>&#x000A;</div><div class='line' id='LC2761'><span class="c">							we know there exists one such element --&gt;</span>&#x000A;</div><div class='line' id='LC2762'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"SplitScripts"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2763'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndScripts"</span> <span class="na">select=</span><span class="s">"mml:mprescripts[1]/following-sibling::*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2764'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2765'>        <span class="nt">&lt;/m:sPre&gt;</span>&#x000A;</div><div class='line' id='LC2766'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2767'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2768'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2769'>&#x000A;</div><div class='line' id='LC2770'>  <span class="c">&lt;!-- Template that determines if ndCur is an equation array.</span>&#x000A;</div><div class='line' id='LC2771'><span class="c">				</span>&#x000A;</div><div class='line' id='LC2772'><span class="c">			 ndCur is an equation array if:</span>&#x000A;</div><div class='line' id='LC2773'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC2774'><span class="c">			 1.  There are are no frame lines</span>&#x000A;</div><div class='line' id='LC2775'><span class="c">			 2.  There are no column lines</span>&#x000A;</div><div class='line' id='LC2776'><span class="c">			 3.  There are no row lines</span>&#x000A;</div><div class='line' id='LC2777'><span class="c">			 4.  There is no row with more than 1 column  </span>&#x000A;</div><div class='line' id='LC2778'><span class="c">			 5.  There is no row with fewer than 1 column</span>&#x000A;</div><div class='line' id='LC2779'><span class="c">			 6.  There are no labeled rows.</span>&#x000A;</div><div class='line' id='LC2780'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC2781'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2782'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FIsEqArray"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2783'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2784'>&#x000A;</div><div class='line' id='LC2785'>    <span class="c">&lt;!-- There should be no frame, columnlines, or rowlines --&gt;</span>&#x000A;</div><div class='line' id='LC2786'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2787'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"(not($ndCur/@frame) or $ndCur/@frame='' or $ndCur/@frame='none')</span>&#x000A;</div><div class='line' id='LC2788'><span class="s">                      and (not($ndCur/@mml:frame) or $ndCur/@mml:frame='' or $ndCur/@mml:frame='none')</span>&#x000A;</div><div class='line' id='LC2789'><span class="s">								      and (not($ndCur/@columnlines) or $ndCur/@columnlines='' or $ndCur/@columnlines='none')</span>&#x000A;</div><div class='line' id='LC2790'><span class="s">                      and (not($ndCur/@mml:columnlines) or $ndCur/@mml:columnlines='' or $ndCur/@mml:columnlines='none')</span>&#x000A;</div><div class='line' id='LC2791'><span class="s">								      and (not($ndCur/@rowlines) or $ndCur/@rowlines='' or $ndCur/@rowlines='none')</span>&#x000A;</div><div class='line' id='LC2792'><span class="s">                      and (not($ndCur/@mml:rowlines) or $ndCur/@mml:rowlines='' or $ndCur/@mml:rowlines='none')</span>&#x000A;</div><div class='line' id='LC2793'><span class="s">								      and not($ndCur/mml:mtr[count(mml:mtd) &amp;gt; 1])</span>&#x000A;</div><div class='line' id='LC2794'><span class="s">											and not($ndCur/mml:mtr[count(mml:mtd) &amp;lt; 1])</span>&#x000A;</div><div class='line' id='LC2795'><span class="s">								      and not($ndCur/mml:mlabeledtr)"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2796'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2797'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2798'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2799'>&#x000A;</div><div class='line' id='LC2800'>  <span class="c">&lt;!-- Template used to determine if we should ignore a collection when iterating through </span>&#x000A;</div><div class='line' id='LC2801'><span class="c">	     a mathml equation array row.</span>&#x000A;</div><div class='line' id='LC2802'><span class="c">	</span>&#x000A;</div><div class='line' id='LC2803'><span class="c">			 So far, the only thing that needs to be ignored is the argument of an nary.  We</span>&#x000A;</div><div class='line' id='LC2804'><span class="c">			 can ignore this since it is output when we apply-templates to the munder[over]/msub[sup].</span>&#x000A;</div><div class='line' id='LC2805'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2806'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FIgnoreCollection"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2807'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2808'>&#x000A;</div><div class='line' id='LC2809'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNaryArgument"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2810'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsNaryArgument"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2811'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2812'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2813'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2814'>&#x000A;</div><div class='line' id='LC2815'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2816'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fNaryArgument=1"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2817'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2818'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2819'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2820'>&#x000A;</div><div class='line' id='LC2821'>  <span class="c">&lt;!-- Template used to determine if we've already encountered an maligngroup or malignmark.</span>&#x000A;</div><div class='line' id='LC2822'><span class="c">	</span>&#x000A;</div><div class='line' id='LC2823'><span class="c">			 This is needed because omml has an implicit spacing alignment (omml spacing alignment = </span>&#x000A;</div><div class='line' id='LC2824'><span class="c">			 mathml's maligngroup element) at the beginning of each equation array row.  Therefore, </span>&#x000A;</div><div class='line' id='LC2825'><span class="c">			 the first maligngroup (implied or explicit) we encounter does not need to be output.  </span>&#x000A;</div><div class='line' id='LC2826'><span class="c">			 This template recursively searches up the xml tree and looks at previous siblings to see </span>&#x000A;</div><div class='line' id='LC2827'><span class="c">			 if they have a descendant that is an maligngroup or malignmark.  We look for the malignmark </span>&#x000A;</div><div class='line' id='LC2828'><span class="c">			 to find the implicit maligngroup.</span>&#x000A;</div><div class='line' id='LC2829'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2830'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FFirstAlignAlreadyFound"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2831'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2832'>&#x000A;</div><div class='line' id='LC2833'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2834'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"count($ndCur/preceding-sibling::*[descendant-or-self::mml:maligngroup</span>&#x000A;</div><div class='line' id='LC2835'><span class="s">								                                        or descendant-or-self::mml:malignmark]) &amp;gt; 0"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2836'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"not($ndCur/parent::mml:mtd)"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2837'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FFirstAlignAlreadyFound"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2838'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndCur/parent::*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2839'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2840'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2841'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2842'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2843'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2844'>&#x000A;</div><div class='line' id='LC2845'>  <span class="c">&lt;!-- This template builds a string that is result of concatenating a given string several times. </span>&#x000A;</div><div class='line' id='LC2846'><span class="c">	</span>&#x000A;</div><div class='line' id='LC2847'><span class="c">			 Given strToRepeat, create a string that has strToRepeat repeated iRepitions times. </span>&#x000A;</div><div class='line' id='LC2848'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2849'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"ConcatStringRepeat"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2850'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"strToRepeat"</span> <span class="na">select=</span><span class="s">"''"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2851'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"iRepetitions"</span> <span class="na">select=</span><span class="s">"0"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2852'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"strBuilding"</span> <span class="na">select=</span><span class="s">"''"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2853'>&#x000A;</div><div class='line' id='LC2854'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2855'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$iRepetitions &amp;lt;= 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2856'>        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$strBuilding"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2857'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2858'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2859'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"ConcatStringRepeat"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2860'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"strToRepeat"</span> <span class="na">select=</span><span class="s">"$strToRepeat"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2861'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"iRepetitions"</span> <span class="na">select=</span><span class="s">"$iRepetitions - 1"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2862'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"strBuilding"</span> <span class="na">select=</span><span class="s">"concat($strBuilding, $strToRepeat)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2863'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2864'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2865'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2866'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2867'>&#x000A;</div><div class='line' id='LC2868'>  <span class="c">&lt;!-- This template determines if ndCur is a special collection.</span>&#x000A;</div><div class='line' id='LC2869'><span class="c">			 By special collection, I mean is ndCur the outer element of some special grouping </span>&#x000A;</div><div class='line' id='LC2870'><span class="c">			 of mathml elements that actually represents some over all omml structure.</span>&#x000A;</div><div class='line' id='LC2871'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC2872'><span class="c">			 For instance, is ndCur a linear fraction, or an omml function.</span>&#x000A;</div><div class='line' id='LC2873'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2874'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FSpecialCollection"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2875'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2876'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2877'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/self::mml:mrow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2878'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fLinearFraction"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2879'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FLinearFrac"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2880'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndCur"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2881'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2882'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2883'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fFunc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2884'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsFunc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2885'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2886'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2887'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2888'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2889'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fLinearFraction=1 or $fFunc=1"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2890'>          <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2891'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2892'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2893'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2894'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2895'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2896'>&#x000A;</div><div class='line' id='LC2897'>  <span class="c">&lt;!-- This template iterates through the children of an equation array row (mtr) and outputs</span>&#x000A;</div><div class='line' id='LC2898'><span class="c">	     the equation.</span>&#x000A;</div><div class='line' id='LC2899'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC2900'><span class="c">			 This template does all the work to output ampersands and skip the right elements when needed.</span>&#x000A;</div><div class='line' id='LC2901'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2902'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"ProcessEqArrayRow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2903'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2904'>&#x000A;</div><div class='line' id='LC2905'>    <span class="nt">&lt;xsl:for-each</span> <span class="na">select=</span><span class="s">"$ndCur/*"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2906'>      <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fSpecialCollection"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2907'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FSpecialCollection"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2908'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2909'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2910'>      <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2911'>      <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fIgnoreCollection"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2912'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIgnoreCollection"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2913'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2914'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2915'>      <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2916'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2917'>        <span class="c">&lt;!-- If we have an alignment element output the ampersand. --&gt;</span>&#x000A;</div><div class='line' id='LC2918'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"self::mml:maligngroup or self::mml:malignmark"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2919'>          <span class="c">&lt;!-- Omml has an implied spacing alignment at the beginning of each equation.</span>&#x000A;</div><div class='line' id='LC2920'><span class="c">					     Therefore, if this is the first ampersand to be output, don't actually output. --&gt;</span>&#x000A;</div><div class='line' id='LC2921'>          <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fFirstAlignAlreadyFound"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2922'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FFirstAlignAlreadyFound"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2923'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2924'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2925'>          <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2926'>          <span class="c">&lt;!-- Don't output unless it is an malignmark or we have already previously found an alignment point. --&gt;</span>&#x000A;</div><div class='line' id='LC2927'>          <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"self::mml:malignmark or $fFirstAlignAlreadyFound=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2928'>            <span class="nt">&lt;m:r&gt;</span>&#x000A;</div><div class='line' id='LC2929'>              <span class="nt">&lt;m:t&gt;</span><span class="ni">&amp;amp;</span><span class="nt">&lt;/m:t&gt;</span>&#x000A;</div><div class='line' id='LC2930'>            <span class="nt">&lt;/m:r&gt;</span>&#x000A;</div><div class='line' id='LC2931'>          <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC2932'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2933'>        <span class="c">&lt;!-- If this node is an non-special mrow or mstyle and we aren't supposed to ignore this collection, then</span>&#x000A;</div><div class='line' id='LC2934'><span class="c">				     go ahead an apply templates to this node. --&gt;</span>&#x000A;</div><div class='line' id='LC2935'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fIgnoreCollection=0 and ((self::mml:mrow and $fSpecialCollection=0) or self::mml:mstyle)"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2936'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"ProcessEqArrayRow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2937'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2938'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2939'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2940'>        <span class="c">&lt;!-- At this point we have some mathml structure (fraction, nary, non-grouping element, etc.) --&gt;</span>&#x000A;</div><div class='line' id='LC2941'>        <span class="c">&lt;!-- If this mathml structure has alignment groups or marks as children, then extract those since</span>&#x000A;</div><div class='line' id='LC2942'><span class="c">				     omml can't handle that. --&gt;</span>&#x000A;</div><div class='line' id='LC2943'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"descendant::mml:maligngroup or descendant::mml:malignmark"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2944'>          <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"cMalignGroups"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2945'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"count(descendant::mml:maligngroup)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2946'>          <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2947'>          <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"cMalignMarks"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2948'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"count(descendant::mml:malignmark)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2949'>          <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2950'>          <span class="c">&lt;!-- Output all maligngroups and malignmarks as '&amp;' --&gt;</span>&#x000A;</div><div class='line' id='LC2951'>          <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$cMalignGroups + $cMalignMarks &amp;gt; 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2952'>            <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"str"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2953'>              <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"ConcatStringRepeat"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2954'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"strToRepeat"</span> <span class="na">select=</span><span class="s">"'&amp;amp;'"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2955'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"iRepetitions"</span> <span class="na">select=</span><span class="s">"$cMalignGroups + $cMalignMarks"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2956'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"strBuilding"</span> <span class="na">select=</span><span class="s">"''"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2957'>              <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2958'>            <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC2959'>            <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:r"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2960'>              <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:t"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2961'>                <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC2962'>                  <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sInput"</span> <span class="na">select=</span><span class="s">"$str"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2963'>                <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC2964'>              <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2965'>            <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC2966'>          <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC2967'>          <span class="c">&lt;!-- Now that the '&amp;' have been extracted, just apply-templates to this node.--&gt;</span>&#x000A;</div><div class='line' id='LC2968'>          <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2969'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC2970'>        <span class="c">&lt;!-- If there are no alignment points as descendants, then go ahead and output this node. --&gt;</span>&#x000A;</div><div class='line' id='LC2971'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2972'>          <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC2973'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC2974'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC2975'>    <span class="nt">&lt;/xsl:for-each&gt;</span>&#x000A;</div><div class='line' id='LC2976'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC2977'>&#x000A;</div><div class='line' id='LC2978'>  <span class="c">&lt;!-- This template transforms mtable into its appropriate omml type.</span>&#x000A;</div><div class='line' id='LC2979'><span class="c">	</span>&#x000A;</div><div class='line' id='LC2980'><span class="c">			 There are two possible omml constructs that an mtable can become:  a matrix or </span>&#x000A;</div><div class='line' id='LC2981'><span class="c">			 an equation array.</span>&#x000A;</div><div class='line' id='LC2982'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC2983'><span class="c">			 Because omml has no generic table construct, the omml matrix is the best approximate</span>&#x000A;</div><div class='line' id='LC2984'><span class="c">			 for a mathml table.</span>&#x000A;</div><div class='line' id='LC2985'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC2986'><span class="c">			 Our equation array transformation is very simple.  The main goal of this transform is to</span>&#x000A;</div><div class='line' id='LC2987'><span class="c">			 allow roundtripping omml eq arrays through mathml.  The template ProcessEqArrayRow was never</span>&#x000A;</div><div class='line' id='LC2988'><span class="c">			 intended to account for many of the alignment flexibilities that are present in mathml like </span>&#x000A;</div><div class='line' id='LC2989'><span class="c">			 using the alig attribute, using alignmark attribute in token elements, etc.</span>&#x000A;</div><div class='line' id='LC2990'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC2991'><span class="c">			 The restrictions on this transform require &lt;malignmark&gt; and &lt;maligngroup&gt; elements to be outside of</span>&#x000A;</div><div class='line' id='LC2992'><span class="c">			 any non-grouping mathml elements (that is, mrow and mstyle).  Moreover, these elements cannot be the children of</span>&#x000A;</div><div class='line' id='LC2993'><span class="c">			 mrows that represent linear fractions or functions.  Also, &lt;malignmark&gt; cannot be a child</span>&#x000A;</div><div class='line' id='LC2994'><span class="c">			 of token attributes.</span>&#x000A;</div><div class='line' id='LC2995'><span class="c">			 </span>&#x000A;</div><div class='line' id='LC2996'><span class="c">			 In the case that the above </span>&#x000A;</div><div class='line' id='LC2997'><span class="c">	</span>&#x000A;</div><div class='line' id='LC2998'><span class="c">	--&gt;</span>&#x000A;</div><div class='line' id='LC2999'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mtable"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3000'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fEqArray"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3001'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FIsEqArray"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3002'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3003'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3004'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3005'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3006'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fEqArray=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3007'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:eqArr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3008'>          <span class="nt">&lt;xsl:for-each</span> <span class="na">select=</span><span class="s">"mml:mtr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3009'>            <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:e"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3010'>              <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"ProcessEqArrayRow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3011'>                <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"mml:mtd"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3012'>              <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3013'>            <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3014'>          <span class="nt">&lt;/xsl:for-each&gt;</span>&#x000A;</div><div class='line' id='LC3015'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3016'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3017'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3018'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"cMaxElmtsInRow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3019'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CountMaxElmtsInRow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3020'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3021'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"cMaxElmtsInRow"</span> <span class="na">select=</span><span class="s">"0"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3022'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3023'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3024'>        <span class="nt">&lt;m:m&gt;</span>&#x000A;</div><div class='line' id='LC3025'>          <span class="nt">&lt;m:mPr&gt;</span>&#x000A;</div><div class='line' id='LC3026'>            <span class="nt">&lt;m:baseJc</span> <span class="na">m:val=</span><span class="s">"center"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3027'>            <span class="nt">&lt;m:plcHide</span> <span class="na">m:val=</span><span class="s">"on"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3028'>            <span class="nt">&lt;m:mcs&gt;</span>&#x000A;</div><div class='line' id='LC3029'>              <span class="nt">&lt;m:mc&gt;</span>&#x000A;</div><div class='line' id='LC3030'>                <span class="nt">&lt;m:mcPr&gt;</span>&#x000A;</div><div class='line' id='LC3031'>                  <span class="nt">&lt;m:count&gt;</span>&#x000A;</div><div class='line' id='LC3032'>                    <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3033'>                      <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$cMaxElmtsInRow"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3034'>                    <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC3035'>                  <span class="nt">&lt;/m:count&gt;</span>&#x000A;</div><div class='line' id='LC3036'>                  <span class="nt">&lt;m:mcJc</span> <span class="na">m:val=</span><span class="s">"center"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3037'>                <span class="nt">&lt;/m:mcPr&gt;</span>&#x000A;</div><div class='line' id='LC3038'>              <span class="nt">&lt;/m:mc&gt;</span>&#x000A;</div><div class='line' id='LC3039'>            <span class="nt">&lt;/m:mcs&gt;</span>&#x000A;</div><div class='line' id='LC3040'>          <span class="nt">&lt;/m:mPr&gt;</span>&#x000A;</div><div class='line' id='LC3041'>          <span class="nt">&lt;xsl:for-each</span> <span class="na">select=</span><span class="s">"*"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3042'>            <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3043'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"self::mml:mtr or self::mml:mlabeledtr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3044'>                <span class="nt">&lt;m:mr&gt;</span>&#x000A;</div><div class='line' id='LC3045'>                  <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3046'>                    <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"self::mml:mtr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3047'>                      <span class="nt">&lt;xsl:for-each</span> <span class="na">select=</span><span class="s">"*"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3048'>                        <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC3049'>                          <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3050'>                        <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC3051'>                      <span class="nt">&lt;/xsl:for-each&gt;</span>&#x000A;</div><div class='line' id='LC3052'>                      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateEmptyElmt"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3053'>                        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"cEmptyMtd"</span> <span class="na">select=</span><span class="s">"$cMaxElmtsInRow - count(*)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3054'>                      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3055'>                    <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3056'>                    <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3057'>                      <span class="nt">&lt;xsl:for-each</span> <span class="na">select=</span><span class="s">"*[position() &amp;gt; 1]"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3058'>                        <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC3059'>                          <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3060'>                        <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC3061'>                      <span class="nt">&lt;/xsl:for-each&gt;</span>&#x000A;</div><div class='line' id='LC3062'>                      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateEmptyElmt"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3063'>                        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"cEmptyMtd"</span> <span class="na">select=</span><span class="s">"$cMaxElmtsInRow - (count(*) - 1)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3064'>                      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3065'>                    <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3066'>                  <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3067'>                <span class="nt">&lt;/m:mr&gt;</span>&#x000A;</div><div class='line' id='LC3068'>              <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3069'>              <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3070'>                <span class="nt">&lt;m:mr&gt;</span>&#x000A;</div><div class='line' id='LC3071'>                  <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC3072'>                    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3073'>                  <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC3074'>                  <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateEmptyElmt"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3075'>                    <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"cEmptyMtd"</span> <span class="na">select=</span><span class="s">"$cMaxElmtsInRow - 1"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3076'>                  <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3077'>                <span class="nt">&lt;/m:mr&gt;</span>&#x000A;</div><div class='line' id='LC3078'>              <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3079'>            <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3080'>          <span class="nt">&lt;/xsl:for-each&gt;</span>&#x000A;</div><div class='line' id='LC3081'>        <span class="nt">&lt;/m:m&gt;</span>&#x000A;</div><div class='line' id='LC3082'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3083'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3084'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3085'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"m:mtd"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3086'>    <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3087'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3088'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CreateEmptyElmt"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3089'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"cEmptyMtd"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3090'>    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$cEmptyMtd &amp;gt; 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3091'>      <span class="nt">&lt;m:e&gt;&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC3092'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateEmptyElmt"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3093'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"cEmptyMtd"</span> <span class="na">select=</span><span class="s">"$cEmptyMtd - 1"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3094'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3095'>    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC3096'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3097'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CountMaxElmtsInRow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3098'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3099'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"cMaxElmtsInRow"</span> <span class="na">select=</span><span class="s">"0"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3100'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3101'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"not($ndCur)"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3102'>        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$cMaxElmtsInRow"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3103'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3104'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3105'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CountMaxElmtsInRow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3106'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"$ndCur/following-sibling::*[1]"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3107'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"cMaxElmtsInRow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3108'>            <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3109'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"local-name($ndCur) = 'mlabeledtr' and </span>&#x000A;</div><div class='line' id='LC3110'><span class="s">								            namespace-uri($ndCur) = 'http://www.w3.org/1998/Math/MathML'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3111'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3112'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"(count($ndCur/*) - 1) &amp;gt; $cMaxElmtsInRow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3113'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"count($ndCur/*) - 1"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3114'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3115'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3116'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$cMaxElmtsInRow"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3117'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3118'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3119'>              <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3120'>              <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"local-name($ndCur) = 'mtr' and </span>&#x000A;</div><div class='line' id='LC3121'><span class="s">								            namespace-uri($ndCur) = 'http://www.w3.org/1998/Math/MathML'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3122'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3123'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"count($ndCur/*) &amp;gt; $cMaxElmtsInRow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3124'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"count($ndCur/*)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3125'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3126'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3127'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$cMaxElmtsInRow"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3128'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3129'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3130'>              <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3131'>              <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3132'>                <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3133'>                  <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"1 &amp;gt; $cMaxElmtsInRow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3134'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"1"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3135'>                  <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3136'>                  <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3137'>                    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$cMaxElmtsInRow"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3138'>                  <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3139'>                <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3140'>              <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3141'>            <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3142'>          <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC3143'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3144'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3145'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3146'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3147'>&#x000A;</div><div class='line' id='LC3148'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"GetMglyphAltText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3149'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3150'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3151'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/@alt"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3152'>        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space($ndCur/@alt)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3153'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3154'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3155'>        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space($ndCur/@mml:alt)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3156'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3157'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3158'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3159'>&#x000A;</div><div class='line' id='LC3160'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mglyph"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3161'>    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:r"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3162'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:rPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3163'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:nor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3164'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3165'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:t"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3166'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3167'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sInput"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3168'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"GetMglyphAltText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3169'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3170'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3171'>          <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC3172'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3173'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3174'>    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3175'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3176'>&#x000A;</div><div class='line' id='LC3177'>  <span class="c">&lt;!-- Omml doesn't really support mglyph, so just output the alt text --&gt;</span>&#x000A;</div><div class='line' id='LC3178'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mi[child::mml:mglyph] | </span>&#x000A;</div><div class='line' id='LC3179'><span class="s">	                     mml:mn[child::mml:mglyph] | </span>&#x000A;</div><div class='line' id='LC3180'><span class="s">	                     mml:mo[child::mml:mglyph] | </span>&#x000A;</div><div class='line' id='LC3181'><span class="s">	                     mml:ms[child::mml:mglyph] | </span>&#x000A;</div><div class='line' id='LC3182'><span class="s">	                     mml:mtext[child::mml:mglyph]"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3183'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"mathvariant"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3184'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3185'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mathvariant"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3186'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mathvariant"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3187'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3188'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3189'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:mathvariant"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3190'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3191'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3192'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3193'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fontstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3194'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3195'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@fontstyle"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3196'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@fontstyle"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3197'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3198'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3199'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:fontstyle"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3200'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3201'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3202'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3203'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fontweight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3204'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3205'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@fontweight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3206'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@fontweight"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3207'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3208'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3209'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:fontweight"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3210'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3211'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3212'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3213'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"mathcolor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3214'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3215'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mathcolor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3216'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mathcolor"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3217'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3218'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3219'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:mathcolor"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3220'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3221'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3222'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3223'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"mathsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3224'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3225'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@mathsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3226'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mathsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3227'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3228'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3229'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:mathsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3230'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3231'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3232'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3233'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"color"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3234'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3235'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@color"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3236'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@color"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3237'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3238'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3239'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:color"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3240'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3241'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3242'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3243'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fontsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3244'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3245'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@fontsize"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3246'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@fontsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3247'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3248'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3249'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:fontsize"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3250'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3251'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3252'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3253'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3254'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FNor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3255'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3256'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3257'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3258'>&#x000A;</div><div class='line' id='LC3259'>    <span class="c">&lt;!-- Output MS Left Quote (if need be) --&gt;</span>&#x000A;</div><div class='line' id='LC3260'>    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"self::mml:ms"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3261'>      <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"chLquote"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3262'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"LQuoteFromMs"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3263'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"curMs"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3264'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3265'>      <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3266'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:r"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3267'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateRunProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3268'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="na">select=</span><span class="s">"$mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3269'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="na">select=</span><span class="s">"$fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3270'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="na">select=</span><span class="s">"$fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3271'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathcolor"</span> <span class="na">select=</span><span class="s">"$mathcolor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3272'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathsize"</span> <span class="na">select=</span><span class="s">"$mathsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3273'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"color"</span> <span class="na">select=</span><span class="s">"$color"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3274'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontsize"</span> <span class="na">select=</span><span class="s">"$fontsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3275'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fNor"</span> <span class="na">select=</span><span class="s">"$fNor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3276'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3277'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3278'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:t"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3279'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3280'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sInput"</span> <span class="na">select=</span><span class="s">"$chLquote"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3281'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3282'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3283'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3284'>    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC3285'>    <span class="nt">&lt;xsl:for-each</span> <span class="na">select=</span><span class="s">"mml:mglyph | text()"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3286'>      <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fForceNor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3287'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3288'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"self::mml:mglyph"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3289'>          <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3290'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3291'>      <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3292'>&#x000A;</div><div class='line' id='LC3293'>      <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"str"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3294'>        <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3295'>          <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"self::mml:mglyph"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3296'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"GetMglyphAltText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3297'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3298'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3299'>          <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3300'>          <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3301'>            <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space(.)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3302'>          <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3303'>        <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3304'>      <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3305'>      <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"string-length($str) &amp;gt; 0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3306'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:r"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3307'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateRunProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3308'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="na">select=</span><span class="s">"$mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3309'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="na">select=</span><span class="s">"$fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3310'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="na">select=</span><span class="s">"$fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3311'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathcolor"</span> <span class="na">select=</span><span class="s">"$mathcolor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3312'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathsize"</span> <span class="na">select=</span><span class="s">"$mathsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3313'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"color"</span> <span class="na">select=</span><span class="s">"$color"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3314'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontsize"</span> <span class="na">select=</span><span class="s">"$fontsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3315'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fNor"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3316'>              <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3317'>                <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fForceNor=1"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3318'>                <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3319'>                  <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$fNor"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3320'>                <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3321'>              <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3322'>            <span class="nt">&lt;/xsl:with-param&gt;</span>&#x000A;</div><div class='line' id='LC3323'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3324'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3325'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:t"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3326'>            <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3327'>              <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sInput"</span> <span class="na">select=</span><span class="s">"$str"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3328'>            <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3329'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3330'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3331'>      <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC3332'>    <span class="nt">&lt;/xsl:for-each&gt;</span>&#x000A;</div><div class='line' id='LC3333'>&#x000A;</div><div class='line' id='LC3334'>    <span class="c">&lt;!-- Output MS Right Quote (if need be) --&gt;</span>&#x000A;</div><div class='line' id='LC3335'>    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"self::mml:ms"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3336'>      <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"chRquote"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3337'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"RQuoteFromMs"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3338'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"curMs"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3339'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3340'>      <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3341'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:r"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3342'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreateRunProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3343'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathvariant"</span> <span class="na">select=</span><span class="s">"$mathvariant"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3344'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontstyle"</span> <span class="na">select=</span><span class="s">"$fontstyle"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3345'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontweight"</span> <span class="na">select=</span><span class="s">"$fontweight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3346'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathcolor"</span> <span class="na">select=</span><span class="s">"$mathcolor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3347'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"mathsize"</span> <span class="na">select=</span><span class="s">"$mathsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3348'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"color"</span> <span class="na">select=</span><span class="s">"$color"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3349'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fontsize"</span> <span class="na">select=</span><span class="s">"$fontsize"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3350'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fNor"</span> <span class="na">select=</span><span class="s">"$fNor"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3351'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3352'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3353'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:t"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3354'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"OutputText"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3355'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sInput"</span> <span class="na">select=</span><span class="s">"$chRquote"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3356'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3357'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3358'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3359'>    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC3360'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3361'>&#x000A;</div><div class='line' id='LC3362'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FStrContainsNonZeroDigit"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3363'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3364'>&#x000A;</div><div class='line' id='LC3365'>    <span class="c">&lt;!-- Translate any nonzero digit into a 9 --&gt;</span>&#x000A;</div><div class='line' id='LC3366'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sNonZeroDigitsToNineDigit"</span> <span class="na">select=</span><span class="s">"translate($s, '12345678', '99999999')"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3367'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3368'>      <span class="c">&lt;!-- Search for 9s --&gt;</span>&#x000A;</div><div class='line' id='LC3369'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"contains($sNonZeroDigitsToNineDigit, '9')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3370'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3371'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3372'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3373'>&#x000A;</div><div class='line' id='LC3374'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FStrContainsDigits"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3375'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3376'>&#x000A;</div><div class='line' id='LC3377'>    <span class="c">&lt;!-- Translate any digit into a 0 --&gt;</span>&#x000A;</div><div class='line' id='LC3378'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sDigitsToZeroDigit"</span> <span class="na">select=</span><span class="s">"translate($s, '123456789', '000000000')"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3379'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3380'>      <span class="c">&lt;!-- Search for 0s --&gt;</span>&#x000A;</div><div class='line' id='LC3381'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"contains($sDigitsToZeroDigit, '0')"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3382'>      <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3383'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3384'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3385'>&#x000A;</div><div class='line' id='LC3386'>&#x000A;</div><div class='line' id='LC3387'>  <span class="c">&lt;!-- Used to determine if mpadded attribute {width, height, depth } </span>&#x000A;</div><div class='line' id='LC3388'><span class="c">       indicates to show everything. </span>&#x000A;</div><div class='line' id='LC3389'><span class="c">       </span>&#x000A;</div><div class='line' id='LC3390'><span class="c">       Unlike mathml, whose mpadded structure has great flexibility in modifying the </span>&#x000A;</div><div class='line' id='LC3391'><span class="c">       bounding box's width, height, and depth, Word can only have zero or full width, height, and depth.</span>&#x000A;</div><div class='line' id='LC3392'><span class="c">       Thus, if the width, height, or depth attributes indicate any kind of nonzero width, height, </span>&#x000A;</div><div class='line' id='LC3393'><span class="c">       or depth, we'll translate that into a show full width, height, or depth for OMML.  Only if the attribute</span>&#x000A;</div><div class='line' id='LC3394'><span class="c">       indicates a zero width, height, or depth, will we report back FFull as false.</span>&#x000A;</div><div class='line' id='LC3395'><span class="c">       </span>&#x000A;</div><div class='line' id='LC3396'><span class="c">       Example:  s=0%    -&gt;  FFull returns 0.</span>&#x000A;</div><div class='line' id='LC3397'><span class="c">                 s=2%    -&gt;  FFull returns 1.</span>&#x000A;</div><div class='line' id='LC3398'><span class="c">                 s=0.1em -&gt;  FFull returns 1.     </span>&#x000A;</div><div class='line' id='LC3399'><span class="c">       </span>&#x000A;</div><div class='line' id='LC3400'><span class="c">       --&gt;</span>&#x000A;</div><div class='line' id='LC3401'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"FFull"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3402'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3403'>&#x000A;</div><div class='line' id='LC3404'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fStrContainsNonZeroDigit"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3405'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FStrContainsNonZeroDigit"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3406'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="na">select=</span><span class="s">"$s"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3407'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3408'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3409'>&#x000A;</div><div class='line' id='LC3410'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fStrContainsDigits"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3411'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FStrContainsDigits"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3412'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="na">select=</span><span class="s">"$s"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3413'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3414'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3415'>&#x000A;</div><div class='line' id='LC3416'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3417'>      <span class="c">&lt;!-- String contained non-zero digit --&gt;</span>&#x000A;</div><div class='line' id='LC3418'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fStrContainsNonZeroDigit=1"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3419'>      <span class="c">&lt;!-- String didn't contain a non-zero digit, but it did contain digits.</span>&#x000A;</div><div class='line' id='LC3420'><span class="c">           This must mean that all digits in the string were 0s. --&gt;</span>&#x000A;</div><div class='line' id='LC3421'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fStrContainsDigits=1"</span><span class="nt">&gt;</span>0<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3422'>      <span class="c">&lt;!-- Else, no digits, therefore, return true.</span>&#x000A;</div><div class='line' id='LC3423'><span class="c">           We return true in the otherwise condition to take account for the possibility</span>&#x000A;</div><div class='line' id='LC3424'><span class="c">           in MathML to say something like width="height". --&gt;</span>&#x000A;</div><div class='line' id='LC3425'>      <span class="nt">&lt;xsl:otherwise&gt;</span>1<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3426'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3427'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3428'>&#x000A;</div><div class='line' id='LC3429'>&#x000A;</div><div class='line' id='LC3430'>  <span class="c">&lt;!-- Just outputs phant properties, doesn't do any fancy </span>&#x000A;</div><div class='line' id='LC3431'><span class="c">       thinking of its own, just obeys the defaults of </span>&#x000A;</div><div class='line' id='LC3432'><span class="c">       phants. --&gt;</span>&#x000A;</div><div class='line' id='LC3433'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CreatePhantPropertiesCore"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3434'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fShow"</span> <span class="na">select=</span><span class="s">"1"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3435'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fFullWidth"</span> <span class="na">select=</span><span class="s">"1"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3436'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fFullHeight"</span> <span class="na">select=</span><span class="s">"1"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3437'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fFullDepth"</span> <span class="na">select=</span><span class="s">"1"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3438'>&#x000A;</div><div class='line' id='LC3439'>    <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fShow=0 </span>&#x000A;</div><div class='line' id='LC3440'><span class="s">                    or $fFullWidth=0 </span>&#x000A;</div><div class='line' id='LC3441'><span class="s">                    or $fFullHeight=0</span>&#x000A;</div><div class='line' id='LC3442'><span class="s">                    or $fFullDepth=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3443'>      <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:phantPr"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3444'>        <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fShow=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3445'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:show"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3446'>            <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>off<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC3447'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3448'>        <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC3449'>        <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fFullWidth=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3450'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:zeroWid"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3451'>            <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC3452'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3453'>        <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC3454'>        <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fFullHeight=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3455'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:zeroAsc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3456'>            <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC3457'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3458'>        <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC3459'>        <span class="nt">&lt;xsl:if</span> <span class="na">test=</span><span class="s">"$fFullDepth=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3460'>          <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:zeroDesc"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3461'>            <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>on<span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC3462'>          <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3463'>        <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC3464'>      <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3465'>    <span class="nt">&lt;/xsl:if&gt;</span>&#x000A;</div><div class='line' id='LC3466'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3467'>&#x000A;</div><div class='line' id='LC3468'>  <span class="c">&lt;!-- Figures out if we should factor in width, height, and depth attributes.  </span>&#x000A;</div><div class='line' id='LC3469'><span class="c">  </span>&#x000A;</div><div class='line' id='LC3470'><span class="c">       If so, then it </span>&#x000A;</div><div class='line' id='LC3471'><span class="c">       gets these attributes, does some processing to figure out what the attributes indicate, </span>&#x000A;</div><div class='line' id='LC3472'><span class="c">       then passes these indications to CreatePhantPropertiesCore.  </span>&#x000A;</div><div class='line' id='LC3473'><span class="c">       </span>&#x000A;</div><div class='line' id='LC3474'><span class="c">       If we aren't supposed to factor in width, height, or depth, then we'll just output the show</span>&#x000A;</div><div class='line' id='LC3475'><span class="c">       attribute. --&gt;</span>&#x000A;</div><div class='line' id='LC3476'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CreatePhantProperties"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3477'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3478'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"fShow"</span> <span class="na">select=</span><span class="s">"1"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3479'>&#x000A;</div><div class='line' id='LC3480'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3481'>      <span class="c">&lt;!-- In the special case that we have an mphantom with one child which is an mpadded, then we should </span>&#x000A;</div><div class='line' id='LC3482'><span class="c">           subsume the mpadded attributes into the mphantom attributes.  The test statement below imples the </span>&#x000A;</div><div class='line' id='LC3483'><span class="c">           'one child which is an mpadded'.  The first part, that the parent of mpadded is an mphantom, is implied</span>&#x000A;</div><div class='line' id='LC3484'><span class="c">           by being in this template, which is only called when we've encountered an mphantom.</span>&#x000A;</div><div class='line' id='LC3485'><span class="c">           </span>&#x000A;</div><div class='line' id='LC3486'><span class="c">           Word outputs its invisible phantoms with smashing as </span>&#x000A;</div><div class='line' id='LC3487'>&#x000A;</div><div class='line' id='LC3488'><span class="c">              &lt;mml:mphantom&gt;</span>&#x000A;</div><div class='line' id='LC3489'><span class="c">                &lt;mml:mpadded . . . &gt;</span>&#x000A;</div><div class='line' id='LC3490'><span class="c">                  </span>&#x000A;</div><div class='line' id='LC3491'><span class="c">                &lt;/mml:mpadded&gt;</span>&#x000A;</div><div class='line' id='LC3492'><span class="c">              &lt;/mml:mphantom&gt;</span>&#x000A;</div><div class='line' id='LC3493'>&#x000A;</div><div class='line' id='LC3494'><span class="c">            This test is used to allow roundtripping smashed invisible phantoms. --&gt;</span>&#x000A;</div><div class='line' id='LC3495'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"count($ndCur/child::*)=1 and count($ndCur/mml:mpadded)=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3496'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseWidth"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3497'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3498'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/mml:mpadded/@width"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3499'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/mml:mpadded/@width, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3500'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3501'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3502'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/mml:mpadded/@mml:width, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3503'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3504'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3505'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3506'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseHeight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3507'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3508'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/mml:mpadded/@height"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3509'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/mml:mpadded/@height, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3510'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3511'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3512'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/mml:mpadded/@mml:height, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3513'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3514'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3515'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3516'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseDepth"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3517'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3518'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/mml:mpadded/@depth"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3519'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/mml:mpadded/@depth, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3520'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3521'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3522'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/mml:mpadded/@mml:depth, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3523'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3524'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3525'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3526'>&#x000A;</div><div class='line' id='LC3527'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fFullWidth"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3528'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FFull"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3529'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="na">select=</span><span class="s">"$sLowerCaseWidth"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3530'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3531'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3532'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fFullHeight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3533'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FFull"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3534'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="na">select=</span><span class="s">"$sLowerCaseHeight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3535'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3536'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3537'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fFullDepth"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3538'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FFull"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3539'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="na">select=</span><span class="s">"$sLowerCaseDepth"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3540'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3541'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3542'>&#x000A;</div><div class='line' id='LC3543'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreatePhantPropertiesCore"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3544'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fShow"</span> <span class="na">select=</span><span class="s">"$fShow"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3545'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fFullWidth"</span> <span class="na">select=</span><span class="s">"$fFullWidth"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3546'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fFullHeight"</span> <span class="na">select=</span><span class="s">"$fFullHeight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3547'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fFullDepth"</span> <span class="na">select=</span><span class="s">"$fFullDepth"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3548'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3549'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3550'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3551'>        <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreatePhantPropertiesCore"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3552'>          <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fShow"</span> <span class="na">select=</span><span class="s">"$fShow"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3553'>        <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3554'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3555'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3556'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3557'>&#x000A;</div><div class='line' id='LC3558'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mpadded"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3559'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3560'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"count(parent::mml:mphantom)=1 and count(preceding-sibling::*)=0 and count(following-sibling::*)=0"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3561'>        <span class="c">&lt;!-- This mpadded is inside an mphantom that has already setup phantom attributes, therefore, just apply templates --&gt;</span>&#x000A;</div><div class='line' id='LC3562'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3563'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3564'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3565'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseWidth"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3566'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3567'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@width"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3568'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@width"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3569'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3570'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3571'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:width"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3572'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3573'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3574'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3575'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseHeight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3576'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3577'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@height"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3578'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@height"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3579'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3580'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3581'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:height"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3582'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3583'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3584'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3585'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseDepth"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3586'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3587'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"@depth"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3588'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@depth"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3589'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3590'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3591'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"@mml:depth"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3592'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3593'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3594'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3595'>&#x000A;</div><div class='line' id='LC3596'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fFullWidth"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3597'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FFull"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3598'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="na">select=</span><span class="s">"$sLowerCaseWidth"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3599'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3600'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3601'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fFullHeight"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3602'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FFull"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3603'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="na">select=</span><span class="s">"$sLowerCaseHeight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3604'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3605'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3606'>        <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fFullDepth"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3607'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"FFull"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3608'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"s"</span> <span class="na">select=</span><span class="s">"$sLowerCaseDepth"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3609'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3610'>        <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3611'>&#x000A;</div><div class='line' id='LC3612'>        <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:phant"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3613'>          <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreatePhantPropertiesCore"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3614'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fShow"</span> <span class="na">select=</span><span class="s">"1"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3615'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fFullWidth"</span> <span class="na">select=</span><span class="s">"$fFullWidth"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3616'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fFullHeight"</span> <span class="na">select=</span><span class="s">"$fFullHeight"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3617'>            <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fFullDepth"</span> <span class="na">select=</span><span class="s">"$fFullDepth"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3618'>          <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3619'>          <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC3620'>            <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3621'>          <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC3622'>        <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3623'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3624'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3625'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3626'>&#x000A;</div><div class='line' id='LC3627'>  <span class="nt">&lt;xsl:template</span> <span class="na">match=</span><span class="s">"mml:mphantom"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3628'>    <span class="nt">&lt;xsl:element</span> <span class="na">name=</span><span class="s">"m:phant"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3629'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"CreatePhantProperties"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3630'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="na">select=</span><span class="s">"."</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3631'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"fShow"</span> <span class="na">select=</span><span class="s">"0"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3632'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3633'>      <span class="nt">&lt;m:e&gt;</span>&#x000A;</div><div class='line' id='LC3634'>        <span class="nt">&lt;xsl:apply-templates</span> <span class="na">select=</span><span class="s">"*"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3635'>      <span class="nt">&lt;/m:e&gt;</span>&#x000A;</div><div class='line' id='LC3636'>    <span class="nt">&lt;/xsl:element&gt;</span>&#x000A;</div><div class='line' id='LC3637'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3638'>&#x000A;</div><div class='line' id='LC3639'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"isNaryOper"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3640'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"sNdCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3641'>    <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"($sNdCur = '&amp;#x222B;' </span>&#x000A;</div><div class='line' id='LC3642'><span class="s">                            or $sNdCur = '&amp;#x222C;' </span>&#x000A;</div><div class='line' id='LC3643'><span class="s">                            or $sNdCur = '&amp;#x222D;' </span>&#x000A;</div><div class='line' id='LC3644'><span class="s">                            or $sNdCur = '&amp;#x222E;' </span>&#x000A;</div><div class='line' id='LC3645'><span class="s">                            or $sNdCur = '&amp;#x222F;' </span>&#x000A;</div><div class='line' id='LC3646'><span class="s">                            or $sNdCur = '&amp;#x2230;' </span>&#x000A;</div><div class='line' id='LC3647'><span class="s">                            or $sNdCur = '&amp;#x2232;' </span>&#x000A;</div><div class='line' id='LC3648'><span class="s">                            or $sNdCur = '&amp;#x2233;' </span>&#x000A;</div><div class='line' id='LC3649'><span class="s">                            or $sNdCur = '&amp;#x2231;' </span>&#x000A;</div><div class='line' id='LC3650'><span class="s">                            or $sNdCur = '&amp;#x2229;' </span>&#x000A;</div><div class='line' id='LC3651'><span class="s">                            or $sNdCur = '&amp;#x222A;' </span>&#x000A;</div><div class='line' id='LC3652'><span class="s">                            or $sNdCur = '&amp;#x220F;' </span>&#x000A;</div><div class='line' id='LC3653'><span class="s">                            or $sNdCur = '&amp;#x2210;' </span>&#x000A;</div><div class='line' id='LC3654'><span class="s">                            or $sNdCur = '&amp;#x2211;' </span>&#x000A;</div><div class='line' id='LC3655'><span class="s">                            or $sNdCur = '&amp;#x22C0;' </span>&#x000A;</div><div class='line' id='LC3656'><span class="s">                            or $sNdCur = '&amp;#x22C1;' </span>&#x000A;</div><div class='line' id='LC3657'><span class="s">                            or $sNdCur = '&amp;#x22C2;' </span>&#x000A;</div><div class='line' id='LC3658'><span class="s">                            or $sNdCur = '&amp;#x22C3;')"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3659'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3660'>&#x000A;</div><div class='line' id='LC3661'>&#x000A;</div><div class='line' id='LC3662'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"isNary"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3663'>    <span class="c">&lt;!-- ndCur is the element around the nAry operator --&gt;</span>&#x000A;</div><div class='line' id='LC3664'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"ndCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3665'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sNdCur"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3666'>      <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"normalize-space($ndCur)"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3667'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3668'>&#x000A;</div><div class='line' id='LC3669'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fNaryOper"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3670'>      <span class="nt">&lt;xsl:call-template</span> <span class="na">name=</span><span class="s">"isNaryOper"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3671'>        <span class="nt">&lt;xsl:with-param</span> <span class="na">name=</span><span class="s">"sNdCur"</span> <span class="na">select=</span><span class="s">"$sNdCur"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3672'>      <span class="nt">&lt;/xsl:call-template&gt;</span>&#x000A;</div><div class='line' id='LC3673'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3674'>&#x000A;</div><div class='line' id='LC3675'>    <span class="c">&lt;!-- Narys shouldn't be MathML accents.  --&gt;</span>&#x000A;</div><div class='line' id='LC3676'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fUnder"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3677'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3678'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/parent::*[self::mml:munder]"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3679'>        <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3680'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3681'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3682'>&#x000A;</div><div class='line' id='LC3683'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"sLowerCaseAccent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3684'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3685'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fUnder=1"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3686'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3687'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/parent::*[self::mml:munder]/@accentunder"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3688'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/parent::*[self::mml:munder]/@accentunder, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3689'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3690'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3691'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/parent::*[self::mml:munder]/@mml:accentunder, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3692'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3693'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3694'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3695'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3696'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3697'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$ndCur/parent::*/@accent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3698'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/parent::*/@accent, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3699'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3700'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3701'>              <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate($ndCur/parent::*/@mml:accent, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3702'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3703'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3704'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3705'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3706'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3707'>&#x000A;</div><div class='line' id='LC3708'>    <span class="nt">&lt;xsl:variable</span> <span class="na">name=</span><span class="s">"fAccent"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3709'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3710'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sLowerCaseAccent='true'"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3711'>        <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3712'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3713'>    <span class="nt">&lt;/xsl:variable&gt;</span>&#x000A;</div><div class='line' id='LC3714'>&#x000A;</div><div class='line' id='LC3715'>    <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3716'>      <span class="c">&lt;!-- This ndCur is in fact part of an nAry if</span>&#x000A;</div><div class='line' id='LC3717'><span class="c">      </span>&#x000A;</div><div class='line' id='LC3718'><span class="c">           1)  The last descendant of ndCur (which could be ndCur itself) is an operator.</span>&#x000A;</div><div class='line' id='LC3719'><span class="c">           2)  Along that chain of descendants we only encounter mml:mo, mml:mstyle, and mml:mrow elements.</span>&#x000A;</div><div class='line' id='LC3720'><span class="c">           3)  the operator in mml:mo is a valid nAry operator</span>&#x000A;</div><div class='line' id='LC3721'><span class="c">           4)  The nAry is not accented.</span>&#x000A;</div><div class='line' id='LC3722'><span class="c">           --&gt;</span>&#x000A;</div><div class='line' id='LC3723'>      <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$fNaryOper = 'true'</span>&#x000A;</div><div class='line' id='LC3724'><span class="s">                      and $fAccent=0</span>&#x000A;</div><div class='line' id='LC3725'><span class="s">                      and $ndCur/descendant-or-self::*[last()]/self::mml:mo</span>&#x000A;</div><div class='line' id='LC3726'><span class="s">                      and not($ndCur/descendant-or-self::*[not(self::mml:mo or </span>&#x000A;</div><div class='line' id='LC3727'><span class="s">			                                                     self::mml:mstyle or </span>&#x000A;</div><div class='line' id='LC3728'><span class="s">			                                                     self::mml:mrow)])"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3729'>        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"true()"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3730'>      <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3731'>      <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3732'>        <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"false()"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3733'>      <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3734'>    <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3735'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3736'>&#x000A;</div><div class='line' id='LC3737'>  <span class="nt">&lt;xsl:template</span> <span class="na">name=</span><span class="s">"CreateNaryProp"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3738'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"chr"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3739'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"sMathmlType"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3740'>    <span class="nt">&lt;xsl:param</span> <span class="na">name=</span><span class="s">"sGrow"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3741'>      <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3742'>        <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"child::*[1]/@stretchy"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3743'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate(child::*[1]/@stretchy, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3744'>        <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3745'>        <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3746'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"translate(child::*[1]/@mml:stretchy, $StrUCAlphabet, $StrLCAlphabet)"</span><span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3747'>        <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3748'>      <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3749'>    <span class="nt">&lt;/xsl:param&gt;</span>&#x000A;</div><div class='line' id='LC3750'>    <span class="nt">&lt;m:naryPr&gt;</span>&#x000A;</div><div class='line' id='LC3751'>      <span class="nt">&lt;m:chr&gt;</span>&#x000A;</div><div class='line' id='LC3752'>        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3753'>          <span class="nt">&lt;xsl:value-of</span> <span class="na">select=</span><span class="s">"$chr"</span> <span class="nt">/&gt;</span>&#x000A;</div><div class='line' id='LC3754'>        <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC3755'>      <span class="nt">&lt;/m:chr&gt;</span>&#x000A;</div><div class='line' id='LC3756'>      <span class="nt">&lt;m:limLoc&gt;</span>&#x000A;</div><div class='line' id='LC3757'>        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3758'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3759'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sMathmlType='munder' or </span>&#x000A;</div><div class='line' id='LC3760'><span class="s">									$sMathmlType='mover' or </span>&#x000A;</div><div class='line' id='LC3761'><span class="s">									$sMathmlType='munderover'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3762'>              <span class="nt">&lt;xsl:text&gt;</span>undOvr<span class="nt">&lt;/xsl:text&gt;</span>&#x000A;</div><div class='line' id='LC3763'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3764'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sMathmlType='msub' or</span>&#x000A;</div><div class='line' id='LC3765'><span class="s">					                $sMathmlType='msup' or</span>&#x000A;</div><div class='line' id='LC3766'><span class="s">					                $sMathmlType='msubsup'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3767'>              <span class="nt">&lt;xsl:text&gt;</span>subSup<span class="nt">&lt;/xsl:text&gt;</span>&#x000A;</div><div class='line' id='LC3768'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3769'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3770'>        <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC3771'>      <span class="nt">&lt;/m:limLoc&gt;</span>&#x000A;</div><div class='line' id='LC3772'>      <span class="nt">&lt;m:grow&gt;</span>&#x000A;</div><div class='line' id='LC3773'>        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3774'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3775'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sGrow='true'"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3776'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sGrow='false'"</span><span class="nt">&gt;</span>0<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3777'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$chr='&amp;#x222B;' </span>&#x000A;</div><div class='line' id='LC3778'><span class="s">                            or $chr='&amp;#x222E;' </span>&#x000A;</div><div class='line' id='LC3779'><span class="s">                            or $chr='&amp;#x222F;' </span>&#x000A;</div><div class='line' id='LC3780'><span class="s">                            or $chr='&amp;#x2232;' </span>&#x000A;</div><div class='line' id='LC3781'><span class="s">                            or $chr='&amp;#x2233;'</span>&#x000A;</div><div class='line' id='LC3782'><span class="s">                            or $chr='&amp;#x2229;'</span>&#x000A;</div><div class='line' id='LC3783'><span class="s">                            or $chr='&amp;#x222A;' </span>&#x000A;</div><div class='line' id='LC3784'><span class="s">                            or $chr='&amp;#x220F;' </span>&#x000A;</div><div class='line' id='LC3785'><span class="s">                            or $chr='&amp;#x2211;' </span>&#x000A;</div><div class='line' id='LC3786'><span class="s">                            or $chr='&amp;#x22C0;'</span>&#x000A;</div><div class='line' id='LC3787'><span class="s">                            or $chr='&amp;#x22C1;' </span>&#x000A;</div><div class='line' id='LC3788'><span class="s">                            or $chr='&amp;#x22C2;'</span>&#x000A;</div><div class='line' id='LC3789'><span class="s">                            or $chr='&amp;#x22C3;'"</span><span class="nt">&gt;</span>1<span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3790'>            <span class="nt">&lt;xsl:otherwise&gt;</span>0<span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3791'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3792'>        <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC3793'>      <span class="nt">&lt;/m:grow&gt;</span>&#x000A;</div><div class='line' id='LC3794'>      <span class="nt">&lt;m:subHide&gt;</span>&#x000A;</div><div class='line' id='LC3795'>        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3796'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3797'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sMathmlType='mover' or</span>&#x000A;</div><div class='line' id='LC3798'><span class="s">						                $sMathmlType='msup'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3799'>              <span class="nt">&lt;xsl:text&gt;</span>on<span class="nt">&lt;/xsl:text&gt;</span>&#x000A;</div><div class='line' id='LC3800'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3801'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3802'>              <span class="nt">&lt;xsl:text&gt;</span>off<span class="nt">&lt;/xsl:text&gt;</span>&#x000A;</div><div class='line' id='LC3803'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3804'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3805'>        <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC3806'>      <span class="nt">&lt;/m:subHide&gt;</span>&#x000A;</div><div class='line' id='LC3807'>      <span class="nt">&lt;m:supHide&gt;</span>&#x000A;</div><div class='line' id='LC3808'>        <span class="nt">&lt;xsl:attribute</span> <span class="na">name=</span><span class="s">"m:val"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3809'>          <span class="nt">&lt;xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3810'>            <span class="nt">&lt;xsl:when</span> <span class="na">test=</span><span class="s">"$sMathmlType='munder' or</span>&#x000A;</div><div class='line' id='LC3811'><span class="s">						                $sMathmlType='msub'"</span><span class="nt">&gt;</span>&#x000A;</div><div class='line' id='LC3812'>              <span class="nt">&lt;xsl:text&gt;</span>on<span class="nt">&lt;/xsl:text&gt;</span>&#x000A;</div><div class='line' id='LC3813'>            <span class="nt">&lt;/xsl:when&gt;</span>&#x000A;</div><div class='line' id='LC3814'>            <span class="nt">&lt;xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3815'>              <span class="nt">&lt;xsl:text&gt;</span>off<span class="nt">&lt;/xsl:text&gt;</span>&#x000A;</div><div class='line' id='LC3816'>            <span class="nt">&lt;/xsl:otherwise&gt;</span>&#x000A;</div><div class='line' id='LC3817'>          <span class="nt">&lt;/xsl:choose&gt;</span>&#x000A;</div><div class='line' id='LC3818'>        <span class="nt">&lt;/xsl:attribute&gt;</span>&#x000A;</div><div class='line' id='LC3819'>      <span class="nt">&lt;/m:supHide&gt;</span>&#x000A;</div><div class='line' id='LC3820'>    <span class="nt">&lt;/m:naryPr&gt;</span>&#x000A;</div><div class='line' id='LC3821'>  <span class="nt">&lt;/xsl:template&gt;</span>&#x000A;</div><div class='line' id='LC3822'><span class="nt">&lt;/xsl:stylesheet&gt;</span>&#x000A;</div></pre><div class="markdown-code-block-copy-btn"></div></div></div>
</div>
<script>
  window.Gitee.initReadmeCatalog();
  toMathMlCode('','markdown-body');
  $('.file_content a, .catalog-li a.anchor').click(function () {
    var anchor = $(this).attr('href')
    window.location.hash = anchor
  })
</script>

</div>
</div>
<div class='tree_progress'></div>
<div class='ui small modal' id='modal-linejump'>
<div class='ui custom form content'>
<div class='field'>
<div class='ui right action input'>
<input placeholder='跳转至某一行...' type='number'>
<div class='ui orange button'>
跳转
</div>
</div>
</div>
</div>
</div>

<div class='complaint'>
<div class='ui modal small form' id='landing-comments-complaint-modal'>
<i class='iconfont icon-close close'></i>
<div class='header'>
举报
</div>
<div class='content'>
<div class='appeal-success-tip hide'>
<i class='iconfont icon-ic_msg_success'></i>
<div class='appeal-success-text'>
举报成功
</div>
<span>
我们将于2个工作日内通过站内信反馈结果给你！
</span>
</div>
<div class='appeal-tip'>
请认真填写举报原因，尽可能描述详细。
</div>
<div class='ui form appeal-form'>
<div class='inline field'>
<label class='left-part appeal-type-wrap'>
举报类型
</label>
<div class='ui dropdown selection' id='appeal-comments-types'>
<div class='text default'>
请选择举报类型
</div>
<i class='dropdown icon'></i>
<div class='menu'></div>
</div>
</div>
<div class='inline field'>
<label class='left-part'>
举报原因
</label>
<textarea class='appeal-reason' id='appeal-comment-reason' name='msg' placeholder='请说明举报原因' rows='3'></textarea>
</div>
<div class='ui message callback-msg hide'></div>
<div class='ui small error text message exceeded-size-tip'></div>
</div>
</div>
<div class='actions'>
<div class='ui button blank cancel'>
取消
</div>
<div class='ui orange icon button disabled ok' id='complaint-comment-confirm'>
发送
</div>
</div>
</div>
<script>
  var $complaintCommentsModal = $('#landing-comments-complaint-modal'),
      $complainCommentType = $complaintCommentsModal.find('#appeal-comments-types'),
      $complaintModalTip = $complaintCommentsModal.find('.callback-msg'),
      $complaintCommentsContent = $complaintCommentsModal.find('.appeal-reason'),
      $complaintCommentBtn = $complaintCommentsModal.find('#complaint-comment-confirm'),
      complaintSending = false,
      initedCommentsType = false;
  
  function initCommentsTypeList() {
    if (!initedCommentsType) {
      $.ajax({
        url: "/appeals/fetch_types",
        method: 'get',
        data: {'type': 'comment'},
        success: function (data) {
          var result = '';
          for (var i = 0; i < data.length; i++) {
            result = result + "<div class='item' data-value='" + data[i].id + "'>" + data[i].name + "</div>";
          }
          $complainCommentType.find('.menu').html(result);
        }
      });
      $complainCommentType.dropdown({showOnFocus: false});
      initedCommentsType = true;
    }
  }
  $complainCommentType.on('click', function() {
    $complaintCommentsModal.modal({
      autofocus: false,
      onApprove: function() {
        return false;
      },
      onHidden: function() {
        restoreCommonentDefault();
      }
    }).modal('show');
  });
  
  $complaintCommentsContent.on('change keyup', function(e) {
    var content = $(this).val();
    if ($.trim(content).length > 0 && $complainCommentType.dropdown('get value').length > 0 ) {
      $complaintCommentBtn.removeClass('disabled');
      return;
    }
    $complaintCommentBtn.addClass('disabled');
  });
  
  
  $complainCommentType.dropdown({
    showOnFocus: false,
    onChange: function(value, text, $selectedItem) {
      if (value.length > 0 && $.trim($complaintCommentsContent.val()).length > 0) {
        $complaintCommentBtn.removeClass('disabled');
        return
      }
      $complaintCommentBtn.addClass('disabled');
    }
  });
  
  function restoreCommonentDefault() {
    $complainCommentType.dropdown('restore defaults');
    $complaintCommentsContent.val('');
    $('.exceeded-size-tip').text('').hide();
    $complaintModalTip.text('').hide();
    setTimeout(function() {
      setCommentSendTip(false);
    }, 1500);
  }
  
  $complaintCommentBtn.on('click',function(e){
    var reason = $complaintCommentsContent.val();
    var appealableId = $('#landing-comments-complaint-modal').attr('data-id');
    if (complaintSending) {
      return;
    }
    var appealType = $complainCommentType.dropdown('get value');
    var formData = new FormData();
    formData.append('appeal_type_id', appealType);
    formData.append('reason', reason);
    formData.append('appeal_type','Note');
    formData.append('target_id',appealableId);
    $.ajax({
      type: 'POST',
      url: "/appeals",
      cache: false,
      contentType: false,
      processData: false,
      data: formData,
      beforeSend: function() {
        setCommentSendStatus(true);
      },
      success: function(res) {
        if (res.status == 200) {
          setCommentSendTip(true);
          setTimeout(function() {
            $complaintCommentsModal.modal('hide');
            restoreCommonentDefault();
          }, 3000);
        }
        setCommentSendStatus(false);
      },
      error: function(err) {
        showCommonTips(err.responseJSON.message, 'error');
        setCommentSendStatus(false);
      }
    })
  });
  
  function showCommonTips(text, type) {
    $complaintModalTip.text(text).show();
    if (type == 'error') {
      $complaintModalTip.removeClass('success').addClass('error');
    } else {
      $complaintModalTip.removeClass('error').addClass('success');
    }
  }
  
  function setCommentSendStatus(value) {
    complaintSending = value;
    if (complaintSending) {
      $complaintCommentBtn.addClass('loading');
      $complaintCommentsContent.attr('readonly', true);
      $complainCommentType.attr('readonly', true);
    } else {
      $complaintCommentBtn.removeClass('loading');
      $complaintCommentsContent.attr('readonly', false);
      $complainCommentType.attr('readonly', false);
    }
  }
  
  function setCommentSendTip(value) {
    if (value) {
      $('.appeal-success-tip').removeClass('hide');
      $('.appeal-tip').addClass('hide');
      $('.appeal-form').addClass('hide');
      $('#landing-comments-complaint-modal .actions').addClass('hide');
    } else {
      $('.appeal-success-tip').addClass('hide');
      $('.appeal-tip').removeClass('hide');
      $('.appeal-form').removeClass('hide');
      $('#landing-comments-complaint-modal .actions').removeClass('hide');
    }
  }
</script>

<div class='ui small modal' id='misjudgment_appeal_modal'>
<i class='close icon'></i>
<div class='header dividing ui'>
误判申诉
</div>
<div class='content'>
<p>此处可能存在不合适展示的内容，页面不予展示。您可通过相关编辑功能自查并修改。</p>
<p>如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容，可点击提交进行申诉，我们将尽快为您处理。</p>
<div class='buttons'>
<div class='ui button blank cancel'>取消</div>
<div class='ui button orange submit'>提交</div>
</div>
</div>
</div>
<style>
  #misjudgment_appeal_modal .buttons {
    float: right;
    margin-top: 30px;
    margin-bottom: 20px; }
    #misjudgment_appeal_modal .buttons .cancel {
      margin-right: 20px; }
</style>
<script>
  var $misjudgmentAppealModal = $('#misjudgment_appeal_modal');
  $('.cancel').on('click',function(){
    $misjudgmentAppealModal.modal('hide');
  });
  var $jsSubmitAppeal = $misjudgmentAppealModal.find('.submit')
  $jsSubmitAppeal.on('click', function(e) {
    e.preventDefault();
    $(this).addClass('loading').addClass('disabled');
    var type = $(this).attr('data-type');
    var id = $(this).attr('data-id');
    var projectId = $(this).attr('data-project-id');
    var appealType = $(this).attr('data-appeal-type');
    $.ajax({
      type: "PUT",
      url: "/misjudgment_appeal",
      data: {
        type: type,
        id: id,
        project_id: projectId,
        appeal_type: appealType
      },
      success: function(data) {
        Flash.info('提交成功');
        $jsSubmitAppeal.removeClass('loading');
        $misjudgmentAppealModal.modal('hide');
        location.reload()
      },
      error: function(e) {
        Flash.error('提交失败:'+e.responseText);
        $jsSubmitAppeal.removeClass('loading').removeClass('disabled');
        location.reload()
      }
    });
  })
</script>

</div>
<script>
  "use strict";
  $('.js-check-star').checkbox('set unchecked')
</script>

</div>
</div>
</div>
<div class='four wide column' style='display: none;'>
<div class='project__right-side'>
<div class='side-item intro'>
<div class='header'>
<h4>简介</h4>
</div>
<div class='content'>
<span class='git-project-desc-text'>python 相关脚本</span>
<a class='hide spread' href='javascript:void(0);'>
展开
<i class='caret down icon'></i>
</a>
<a class='retract hide' href='javascript:void(0);'>
收起
<i class='caret up icon'></i>
</a>
<div class='intro-list'>
<div class='blank d-flex d-flex-between dropdown item js-project-label_show label-list-line-feed project-label-list ui' data-labels='[]' data-url='/Luo_Jing98358/lu-py/update_description'>
<div class='mixed-label'>
</div>

<div class='default'>暂无标签</div>
</div>
<div class='hide item'>
<i class='iconfont icon-link'></i>
<span class='git-project-homepage'>
<a rel="nofollow" id="homepage" target="_blank" href="/Luo_Jing98358/lu-py/blob/master/zuoyebang/plug/MML2OMML.XSL">/Luo_Jing98358/lu-py/blob/master/zuoyebang/plug/MML2OMML.XSL</a>
</span>
</div>
<div class='item'>
<i class='iconfont icon-tag-program'></i>
<span class='summary-languages'>
Python
<span class='text-muted'>
等 2 种语言
<i class='icon dropdown'></i>
</span>
</span>
<div class='ui popup summary-languages-popup'>
<div class='row'>
<div class='lang'>
<a href="/explore/all?lang=XSLT">XSLT</a>
</div>
<div class='lang-bar'>
<div class='bar' style='width: 89.5%;'></div>
</div>
<a class="percentage" href="/explore/all?lang=XSLT">89.5%</a>
</div>
<div class='row'>
<div class='lang'>
<a href="/explore/all?lang=Python">Python</a>
</div>
<div class='lang-bar'>
<div class='bar' style='width: 10.5%;'></div>
</div>
<a class="percentage" href="/explore/all?lang=Python">10.5%</a>
</div>
</div>
</div>

<div class='item box-licence'>
<i class='iconfont icon-licence'></i>
<span id='license-popup'>
Apache-2.0
</span>
<div class='ui popup dark'>使用 Apache-2.0 开源许可协议</div>
</div>
<!-- - page = @project.page -->
<!-- - if page&.status? -->
<!-- .item -->
<!-- %i.iconfont.icon-giteepage -->
<!-- Pages： -->
<!-- = link_to page.domain_url, page.domain_url, target: '_blank' -->
</div>
</div>
<div class='content intro-form'>
<div class='ui small input'>
<textarea name='project[description]' placeholder='描述' rows='5'></textarea>
</div>
<div class='ui small input'>
<input data-regex-value='(^$)|(^(http|https):\/\/(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).*)|(^(http|https):\/\/[a-zA-Z0-9]+([_\-\.]{1}[a-zA-Z0-9]+)*\.[a-zA-Z]{2,10}(:[0-9]{1,10})?(\?.*)?(\/.*)?$)' name='project[homepage]' placeholder='主页(eg: https://gitee.com)' type='text'>
</div>
<button class='ui orange button mt-1 btn-save'>
保存更改
</button>
<div class='ui blank button btn-cancel-edit'>
取消
</div>
</div>
</div>
<div class='side-item release'>
<div class='header'>
<h4>发行版</h4>
</div>
<div class='content'>
<span class='text-muted'>
暂无发行版
</span>
</div>
</div>
<div class='side-item contrib' data-url='/Luo_Jing98358/lu-py/contributors_count?ref=master' id='contributor'>
<div class='header'>
<h4>
贡献者
<span class='text-muted' id='contributor-count'></span>
</h4>
<a class="ui link button pull-right" href="/Luo_Jing98358/lu-py/contributors?ref=master">全部</a>
</div>
<div class='content' id='contributor-list'></div>
<div class='ui active centered inline loader' id='contributor-loader'></div>
</div>
<div class='side-item events' data-url='/Luo_Jing98358/lu-py/events.json' id='proj-events'>
<div class='header'>
<h4>近期动态</h4>
</div>
<div class='content'>
<div class='ui comments' id='event-list'></div>
<a class="loadmore hide" href="javascript:void(0);">加载更多
<i class='icon dropdown'></i>
</a><center>
<div class='text-muted nomore hide'>不能加载更多了</div>
<div class='ui inline loader active'></div>
</center>
</div>
</div>
</div>
<div class='ui modal tiny' id='edit-project-description'>
<i class='iconfont icon-close close'></i>
<div class='header'>编辑仓库简介</div>
<div class='content'>
<div class='item mb-2'>
<div class='title label'>简介内容</div>
<div class='ui small input'>
<textarea maxlength='200' name='project[description]' placeholder='描述' rows='5'>python 相关脚本</textarea>
</div>
</div>
<div class='item mb-2'>
<div class='title label'>主页</div>
<div class='ui small input'>
<input data-regex-value='(^$)|(^(http|https):\/\/(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).*)|(^(http|https):\/\/[a-zA-Z0-9]+([_\-\.]{1}[a-zA-Z0-9]+)*\.[a-zA-Z]{2,10}(:[0-9]{1,10})?(\?.*)?(\/.*)?$)' name='project[homepage]' placeholder='主页(eg: https://gitee.com)' type='text'>
</div>
</div>
</div>
<div class='actions'>
<button class='ui button blank cancel'>取消</button>
<button class='ui button orange btn-save'>保存更改</button>
</div>
</div>

<style>
  #license-popup {
    color: #005980;
    cursor: pointer; }
</style>
<script>
  window.gon.projectRightSide = {
    homepage: null,
    description: "python 相关脚本",
    url: '/Luo_Jing98358/lu-py/update_description',
    i18n: {
      invalidHomepage: '不是有效的 http 地址',
      descriptionLimitExceeded: '简介长度不得超过%{limit}个字符',
      noDescription: '暂无描述',
      noPermission: '无权限操作！',
      requestError: '修改发生错误，请稍后重试！'
    }
  }
  window.gon.cloneArrSelectedLabel = [] || []
  $(function () {
    var $editModal = $('#edit-project-description')
    $editModal.modal({
      onShow: function () {
        window.globalUtils.getFocus($editModal.find('textarea'))
      }
    })
    $('.project__right-side').on('click', '.header .btn-edit', function () {
      $editModal.modal('show')
    })
    $('#license-popup').popup({ position: 'bottom center', lastResort: 'bottom center' })
  
    $('.js-project-label_show').projectLabel({
      i18n: {
        empty: "标签名不能为空",
        verify: "标签名只允许包含中文、字母、数字或者中划线(-)，不能以中划线开头，且长度少于35个字符",
        max: "最多选择 5 个标签"
      }
    })
  })
</script>

</div>
<div class='project-right-side-contaner' id='code-parsing'>
<div class='d-flex-between mb-2'>
<div class='title fs-16 d-align-center'>
<img class='mr-1' height='32' src='/static/images/mjc_icon@2x.png' width='32'>
<span class='ai-file-name'>马建仓 AI 助手</span>
</div>
<div>
<i class='iconfont icon-close close gitee-icon-close'></i>
</div>
</div>
<div class='code-parsing-content'>
<div class='sub_title'></div>
<div class='markdown-body'></div>
<div class='bottom-content'>
<div class='js-code-parsing-img'></div>
<div class='ai_code_btns_simple'>
<div class='ai_code_btns_simple_container'>
<div class='mr-1 test-more'>尝试更多</div>
<div class='btn_box' data-text='代码解读' data-value='parsing'>
<div class='btn_box_title'>代码解读</div>
</div>
<div class='btn_box' data-text='代码找茬' data-value='analysis'>
<div class='btn_box_title'>代码找茬</div>
</div>
<div class='btn_box' data-text='代码优化' data-value='optimize'>
<div class='btn_box_title'>代码优化</div>
</div>
</div>
</div>
</div>
</div>
<div class='skeleton'>
<div class='line line1'></div>
<div class='line line2'></div>
<div class='line line3'></div>
<div class='line line4'></div>
<div class='line line1'></div>
<div class='line line2'></div>
<div class='line line3'></div>
<div class='line line4'></div>
<div class='line line1'></div>
<div class='line line2'></div>
<div class='line line3'></div>
<div class='line line4'></div>
</div>
<div class='resize-handle'>
<div class='resize-handle-line'></div>
</div>
<script src="/static/javascripts/markdown-it.min.js"></script>
<script src="https://cn-assets.gitee.com/assets/ai_code_parsing/app-642ecd30110bdb891918afedc215072c.js"></script>
<script>
  $(function() {
    var maxWidthPercentage = 0.5;
    $("#code-parsing").resizable({
      handles: 'e, w', // 通过左边调整大小
      minWidth: 350, // 设置 代码解析框 的最小宽度
      resize: function(event, ui) {
        // 当调整大小时，确保 文件详情 的宽度不小于最小宽度
        var parentWidth = $(this).parent().width();
        var newWidthDiv2 = ui.size.width;
        var newWidthDiv1 = parentWidth - newWidthDiv2;
        // 计算最大宽度
        var maxWidthDiv2 = parentWidth * maxWidthPercentage;
        // 确保 代码解析框 不超过最大宽度
        newWidthDiv2 = Math.min(newWidthDiv2, maxWidthDiv2);
        // 确保 文件详情 至少有最小宽度
        newWidthDiv1 = Math.max(parentWidth - newWidthDiv2, 750);
  
        var percentageCode = (newWidthDiv2 / parentWidth) * 100;
        var percentageProject = (newWidthDiv1 / parentWidth) * 100;
  
        $('#code-parsing').css('width',percentageCode+"%")
        $('#git-project-container').attr('style', 'width: ' + percentageProject + '% !important;');
      }
    });
  })
</script>

</div>
</div>
</div>
<script>
  (function() {
    $(function() {
      Tree.init();
      return TreeCommentActions.init();
    });
  
  }).call(this);
</script>
<script>
  function scrollToReadmeBox() {
    var readmeBox = document.getElementById('git-readme');
    if (readmeBox) {
      const topPos = readmeBox.offsetTop;
      window.scrollTo({ top: topPos, behavior: "smooth" });
    }
  }
  $(".box-licence").click(function(event) {
    $('.lisence-content').show()
    $('.lisence-edit').show()
    $('.readme-content').hide()
    $('.readme-edit').hide()
    $('.file_title_license').addClass('active-title')
    $('.file_title_readme').removeClass('active-title')
    scrollToReadmeBox()
  });
</script>
<script src="/static/javascripts/file-icons.js"></script>
<script src="https://cn-assets.gitee.com/webpacks/gitee-linker.b5c93d77567006097fca.js"></script>

</div>
<script>
  (function() {
    var donateModal;
  
    Gitee.modalHelper = new GiteeModalHelper({
      alertText: '提示',
      okText: '确定'
    });
  
    donateModal = new ProjectDonateModal({
      el: '#project-donate-modal',
      alipayUrl: '/Luo_Jing98358/lu-py/alipay',
      wepayUrl: '/Luo_Jing98358/lu-py/wepay',
      nameIsBlank: '名称不能为空',
      nameTooLong: '名称过长（最多为 36 个字符）',
      modalHelper: Gitee.modalHelper
    });
  
    if (null === 'true') {
      donateModal.show();
    }
  
    $('#project-donate').on('click', function() {
      return donateModal.show();
    });
  
  }).call(this);
</script>
<script>
  Tree.initHighlightTheme('white')
</script>


</div>
<div class='gitee-project-extension'>
<div class='extension lang'>Python</div>
<div class='extension public'>1</div>
<div class='extension https'>https://gitee.com/Luo_Jing98358/lu-py.git</div>
<div class='extension ssh'>git@gitee.com:Luo_Jing98358/lu-py.git</div>
<div class='extension namespace'>Luo_Jing98358</div>
<div class='extension repo'>lu-py</div>
<div class='extension name'>lu-py</div>
<div class='extension branch'>master</div>
</div>
<style>
  .gfm-team_member[data-username="weiweimaibing_juhagen"] {
    padding: 0 4px;
    background: rgba(44,126,248,0.10);
    border-radius: 2px;
  }
</style>

<script>
  $(function() {
    GitLab.GfmAutoComplete.dataSource = "/Luo_Jing98358/lu-py/autocomplete_sources"
    GitLab.GfmAutoComplete.Emoji.assetBase = '/assets/emoji'
    GitLab.GfmAutoComplete.setup();
  });
</script>

<footer id='git-footer-main'>
<div class='ui container'>
<div class='logo-row'>
<a href="https://gitee.com"><img alt='Gitee - 基于 Git 的代码托管和研发协作平台' class='logo-img' src='/static/images/logo-black.svg?t=158106666'>
</a></div>
<div class='name-important'>
深圳市奥思网络科技有限公司版权所有
</div>
<div class='ui two column grid d-flex-center'>
<div class='eight wide column git-footer-left'>
<div class='ui four column grid' id='footer-left'>
<div class='column'>
<div class='ui link list'>
<div class='item'>
<a class="item" href="/all-about-git">Git 大全</a>
</div>
<div class='item'>
<a class="item" rel="nofollow" href="https://oschina.gitee.io/learn-git-branching/">Git 命令学习</a>
</div>
<div class='item'>
<a class="item" rel="nofollow" href="https://copycat.gitee.com/">CopyCat 代码克隆检测</a>
</div>
<div class='item'>
<a class="item" href="/appclient">APP与插件下载</a>
</div>
</div>
</div>
<div class='column'>
<div class='ui link list'>
<div class='item'>
<a class="item" href="/gitee_reward">Gitee Reward</a>
</div>
<div class='item'>
<a class="item" href="/gitee-stars">Gitee 封面人物</a>
</div>
<div class='item'>
<a class="item" href="/gvp">GVP 项目</a>
</div>
<div class='item'>
<a class="item" rel="nofollow" href="https://blog.gitee.com/">Gitee 博客</a>
</div>
<div class='item'>
<a class="item" href="/enterprises#nonprofit-plan">Gitee 公益计划</a>
</div>
<div class='item'>
<a class="item" href="https://gitee.com/features/gitee-go">Gitee 持续集成</a>
</div>
</div>
</div>
<div class='column'>
<div class='ui link list'>
<div class='item'>
<a class="item" href="/api/v5/swagger">OpenAPI</a>
</div>
<div class='item'>
<a class="item" href="https://help.gitee.com">帮助文档</a>
</div>
<div class='item'>
<a class="item" href="/self_services">在线自助服务</a>
</div>
<div class='item'>
<a class="item" href="/help/articles/4378">更新日志</a>
</div>
</div>
</div>
<div class='column'>
<div class='ui link list'>
<div class='item'>
<a class="item" href="/about_us">关于我们</a>
</div>
<div class='item'>
<a class="item" rel="nofollow" href="https://www.oschina.net/news/131099/oschina-hiring">加入我们</a>
</div>
<div class='item'>
<a class="item" href="/terms">使用条款</a>
</div>
<div class='item'>
<a class="item" href="/oschina/git-osc/issues">意见建议</a>
</div>
<div class='item'>
<a class="item" href="/links.html">合作伙伴</a>
</div>
</div>
</div>
</div>
</div>
<div class='eight wide column right aligned followus git-footer-right'>
<div class='qrcode mr-1'>
<div class='qrcode-box'>
<img alt="技术交流QQ群" src="https://cn-assets.gitee.com/assets/contact_qr-5e2c2a8da453396590e56a545bce4974.jpg" />
</div>
<p class='mt-1 mini_app-text'>技术交流QQ群</p>
</div>
<div class='qrcode'>
<div class='qrcode-box'>
<img alt="微信服务号" class="weixin-qr" src="https://cn-assets.gitee.com/assets/qrcode-weixin@2x-b74cc97a2ea80123ea53a737f709836d.png" />
</div>
<p class='mt-1 weixin-text'>微信服务号</p>
</div>
<div class='phone-and-qq column'>
<div class='ui list official-support-container'>
<div class='item'></div>
<div class='item mail-and-zhihu'>
<a rel="nofollow" href="mailto: client@oschina.cn"><i class='iconfont icon-msg-mail'></i>
<span id='git-footer-email'>client#oschina.cn</span>
</a></div>
<div class='item tel'>
<a>
<i class='iconfont icon-tel'></i>
<span>企业版在线使用：400-606-0201</span>
</a>
</div>
<div class='item tel'>
<a class='d-flex'>
<i class='iconfont icon-tel mt-05 mr-05'></i>
<span>专业版私有部署：</span>
<div>
<div>13670252304</div>
<div>13352947997</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class='bottombar'>
<div class='ui container'>
<div class='ui d-flex d-flex-between'>
<div class='seven wide column partner d-flex'>
<div class='open-atom d-flex-center'>
<img class="logo-openatom mr-1" alt="开放原子开源基金会" src="https://cn-assets.gitee.com/assets/logo-openatom-d083391cc8a54e283529f3fc11cc38ca.svg" />
<a target="_blank" rel="nofollow" href="https://www.openatom.org/">开放原子开源基金会</a>
<div class='sub-title ml-1'>合作代码托管平台</div>
</div>
<div class='report-12377 d-flex-center ml-3'>
<img class="report-12377__logo mr-1" alt="违法和不良信息举报中心" src="https://cn-assets.gitee.com/assets/12377@2x-1aa42ed2d2256f82a61ecf57be1ec244.png" />
<a target="_blank" rel="nofollow" href="https://12377.cn">违法和不良信息举报中心</a>
</div>
<div class='copyright ml-3'>
<a rel="nofollow" href="http://beian.miit.gov.cn/">粤ICP备12009483号</a>
</div>
</div>
<div class='nine wide column right aligned'>
<i class='icon world'></i>
<a href="/language/zh-CN">简 体</a>
/
<a href="/language/zh-TW">繁 體</a>
/
<a href="/language/en">English</a>
</div>
</div>
</div>
</div>
</footer>

<script>
  var officialEmail = $('#git-footer-email').text()
  $('#git-footer-main .icon-popup').popup({ position: 'bottom center' })
  $('#git-footer-email').text(officialEmail.replace('#', '@'))
  window.gon.popover_card_locale = {
    follow:"关注",
    unfollow:"已关注",
    gvp_title: "GVP - Gitee 最有价值开源项目",
    project: "项目",
    org: "开源组织",
    member: "",
    author: "作者",
    user_blocked: "该用户已被屏蔽或已注销",
    net_error: "网络错误",
    unknown_exception: "未知异常"
  }
  window.gon.select_message = {
    placeholder: "请输入个人空间地址或完整的邮箱地址"
  }
</script>
<script src="https://cn-assets.gitee.com/webpacks/popover_card-d759637c3dbef944c008.bundle.js"></script>
<link rel="stylesheet" media="all" href="https://cn-assets.gitee.com/webpacks/css/gitee_nps-ae0dbee40f6ddc72015a.css" />
<script src="https://cn-assets.gitee.com/webpacks/gitee_nps-fb459ed1da83f9bc24dc.bundle.js"></script>
<script src="https://cn-assets.gitee.com/webpacks/gitee_icons-a30057b5990085b2c57b.bundle.js"></script>



<div class='side-toolbar'>
<div class='button toolbar-help'>
<i class='iconfont icon-help'></i>
</div>
<div class='ui popup left center dark'>点此查找更多帮助</div>
<div class='toolbar-help-dialog'>
<div class='toolbar-dialog-header'>
<h3 class='toolbar-dialog-title'>搜索帮助</h3>
<form class="toolbar-help-search-form" action="/help/load_keywords_data" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="&#x2713;" />
<div class='ui icon input fluid toolbar-help-search'>
<input name='keywords' placeholder='请输入产品名称或问题' type='text'>
<i class='icon search'></i>
</div>
</form>

<i class='iconfont icon-close toolbar-dialog-close-icon'></i>
</div>
<div class='toolbar-dialog-content'>
<div class='toolbar-help-hot-search'>
<div class='toolbar-roll'>
<a class="init active" title="Git 命令在线学习" href="https://oschina.gitee.io/learn-git-branching/?utm_source==gitee-help-widget"><i class='Blue icon icon-command iconfont'></i>
<span>Git 命令在线学习</span>
</a><a class="init " title="如何在 Gitee 导入 GitHub 仓库" href="https://gitee.com/help/articles/4261?utm_source==gitee-help-widget"><i class='icon icon-clipboard iconfont orange'></i>
<span>如何在 Gitee 导入 GitHub 仓库</span>
</a></div>
<div class='toolbar-list'>
<div class='toolbar-list-item'>
<a href="/help/articles/4114">Git 仓库基础操作</a>
</div>
<div class='toolbar-list-item'>
<a href="/help/articles/4166">企业版和社区版功能对比</a>
</div>
<div class='toolbar-list-item'>
<a href="/help/articles/4191">SSH 公钥设置</a>
</div>
<div class='toolbar-list-item'>
<a href="/help/articles/4194">如何处理代码冲突</a>
</div>
<div class='toolbar-list-item'>
<a href="/help/articles/4232">仓库体积过大，如何减小？</a>
</div>
<div class='toolbar-list-item'>
<a href="/help/articles/4279">如何找回被删除的仓库数据</a>
</div>
<div class='toolbar-list-item'>
<a href="/help/articles/4283">Gitee 产品配额说明</a>
</div>
<div class='toolbar-list-item'>
<a href="/help/articles/4284">GitHub仓库快速导入Gitee及同步更新</a>
</div>
<div class='toolbar-list-item'>
<a href="/help/articles/4328">什么是 Release（发行版）</a>
</div>
<div class='toolbar-list-item'>
<a href="/help/articles/4354">将 PHP 项目自动发布到 packagist.org</a>
</div>
</div>
</div>
<div class='toolbar-help-search-reseult'></div>
</div>
</div>
<script>
  var opt = { position: 'left center'};
  var $helpSideToolbar = $('.button.toolbar-help');
  var $toolbarRoll = $('.toolbar-roll');
  
  $(function() {
    if (true) {
      $helpSideToolbar.popup(opt).popup({lastResort:'left center'})
    } else {
      $helpSideToolbar.popup({lastResort:'left center'}).popup('show', opt);
      setTimeout(function() {
        $helpSideToolbar.popup('hide', opt);
      }, 3000);
    }
  
    if ($toolbarRoll.length) {
      setInterval(function() {
        var $nextActiveLink = $toolbarRoll.find('a.active').next();
        if (!$nextActiveLink.length) {
          $nextActiveLink = $toolbarRoll.find('a:first-child');
        }
        $nextActiveLink.attr('class', 'active').siblings().removeClass('active init');
      }, 5000);
    }
  })
</script>

<div class='ui popup dark left center transition hidden js-feedback-popup'>发送反馈</div>
<div class='button' id='feedback-btn'>
<i class='iconfont icon-feedback'></i>
</div>
<div class='popup button' id='project-user-message'>
<i class='iconfont icon-message'></i>
</div>
<div class='ui popup dark'>给仓库拥有者发送私信</div>
<div class='popup button' id='home-comment'>
<i class='iconfont icon-comment'></i>
</div>
<div class='ui popup dark'>评论</div>
<div class='toolbar-appeal popup button'>
<i class='iconfont icon-report'></i>
</div>
<div class='ui popup dark'>
仓库举报
</div>
<script>
  $('.toolbar-appeal').popup({ position: 'left center' });
</script>

<div class='button gotop popup' id='gotop'>
<i class='iconfont icon-top'></i>
</div>
<div class='ui popup dark'>回到顶部</div>
</div>
<div class='ui modal tiny form' id='send-message-modal'>
<i class='iconfont icon-close close'></i>
<div class='header'>发送私信</div>
<div class='content'>
<div class='ui message hide'></div>
<div class='field'>
<textarea class='content-input' maxlength='255' placeholder='文明发言，真诚提问，请输入要发送的内容'></textarea>
</div>
</div>
<div class='actions'>
<div class='ui button blank cancel'>取消</div>
<div class='ui orange icon button disabled ok'>发送</div>
</div>
</div>
<script>
  var $mountedElem = $('#project-user-message'),
      $messageModal = $('#send-message-modal'),
      $modalTips = $messageModal.find('.message'),
      $contentInput = $messageModal.find('.content-input'),
      $captchaImage = $messageModal.find('.captcha_img'),
      $captchaInput = $messageModal.find('.captcha-field input'),
      $sendMessageBtn = $messageModal.find('.ok.button'),
      messageSending = false
  
  $mountedElem.on('click', function() {
    $captchaImage.trigger('click')
    $messageModal.modal('show')
  })
  
  $messageModal.modal({
    onApprove: function() {
      sendMessage()
      return false
    },
    onHidden: function() {
      $modalTips.hide()
    }
  })
  
  $captchaImage.on('click', function() {
    $captchaInput.val('')
  })
  
  $contentInput.on('change keydown', function(e) {
    var content = $(this).val()
    if ($.trim(content).length == 0) {
      $sendMessageBtn.addClass('disabled')
      return
    }
    $sendMessageBtn.removeClass('disabled')
    if ((e.ctrlKey || e.metaKey) && e.keyCode == 13) {
      $sendMessageBtn.trigger('click')
    }
  })
  
  function sendMessage() {
    if (messageSending) return
    $.ajax({
      url: '/notifications/messages',
      data: {
        link: true,
        content: $contentInput.val(),
        receiver_id: '5740173',
        receiver_username: '',
        captcha: $captchaInput.val()
      },
      type: 'POST',
      dataType: 'JSON',
      beforeSend: function() {
        setSendStatus(true)
      },
      success: function(res) {
        if (res.status != 200) {
          showSendTips(res.message || '可能由于网络原因，留言发送失败，请稍后再试', 'error')
        } else {
          $contentInput.val('')
          showSendTips('私信发送成功')
          setTimeout(function() { $messageModal.modal('hide') }, 500)
        }
        setSendStatus(false)
      },
      error: function(err) {
        try {
          showSendTips(err.responseJSON.message, 'error')
        } catch(e) {
          showSendTips('可能由于网络原因，留言发送失败，请稍后再试', 'error')
        } finally {
          setSendStatus(false)
        }
      }
    })
  }
  
  function showSendTips(text, type) {
    $modalTips.html(text).show()
    if (type == 'error') {
      $modalTips.removeClass('success').addClass('error')
    } else {
      $modalTips.removeClass('error').addClass('success')
    }
  }
  
  function setSendStatus(value) {
    messageSending = value
    if (messageSending) {
      $sendMessageBtn.addClass('loading')
      $contentInput.attr('readonly', true)
    } else {
      $sendMessageBtn.removeClass('loading')
      $contentInput.attr('readonly', false)
    }
  }
</script>

<div class='ui modal small form' id='landing-complaint-modal'>
<i class='iconfont icon-close close'></i>
<div class='header'>
举报
</div>
<div class='content'>
<div class='appeal-success-tip hide'>
<i class='iconfont icon-ic_msg_success'></i>
<div class='appeal-success-text'>
举报成功
</div>
<span>
我们将于2个工作日内通过站内信和邮件方式反馈结果给你！
</span>
</div>
<div class='appeal-tip'>
请认真填写举报原因，如举报内容涉及 版权/产权 方面问题，请尽可能提供完整证据和材料。
</div>
<div class='ui form appeal-form'>
<div class='inline field'>
<label class='left-part appeal-type-wrap'>
举报类型
</label>
<div class='ui dropdown selection' id='appeal-types'>
<div class='text default'>
请选择举报类型
</div>
<i class='dropdown icon'></i>
<div class='menu'></div>
</div>
</div>
<div class='inline field'>
<label class='left-part'>
举报原因
</label>
<textarea class='appeal-reason' name='msg' placeholder='请说明举报原因' rows='3'></textarea>
</div>
<div class='inline field appeal-file-wrap'>
<label class='left-part appeal-file-text'>
举报材料
</label>
<div id='appeal-file-container'>
<div class='ui fluid action input'>
<input disabled id='appeal-file' placeholder='支持 png/jpg/jpeg/doc/docx/zip/pdf，大小不超过 10M' type='text'>
<div class='ui button'>
<input accept='image/png, image/jpeg, application/pdf, application/msword, aplication/zip, application/vnd.openxmlformats-officedocument.wordprocessingml.document' class='file-upload' type='file'>
浏览...
</input>
</div>
</div>
</div>
</div>
<div class='ui message callback-msg hide'></div>
<div class='ui small error text message exceeded-size-tip'></div>
</div>
</div>
<div class='actions'>
<div class='ui button blank cancel'>
取消
</div>
<div class='ui orange icon button disabled ok'>
发送
</div>
</div>
</div>
<script>
  var $elm = $('.toolbar-appeal'),
      $complaintModal = $('#landing-complaint-modal'),
      $complainType = $complaintModal.find('#appeal-types'),
      $complaintModalTip = $complaintModal.find('.callback-msg'),
      $complaintContent = $complaintModal.find('.appeal-reason'),
      $complaintBtn = $complaintModal.find('.ok.button'),
      complaintSending = false,
      fileObject = '';
  
  $('#appeal-types').dropdown({showOnFocus: false});
  $elm.on('click', function() {
     $.ajax({
      url: "/appeals/fetch_types",
      method: 'get',
      data:{'type': 'project'},
      success:function(data){
      var result = '';
      for(var i=0;i<data.length;i++){
        result = result + "<div class='item' data-value='"+data[i].id+"'>"+data[i].name+"</div>"
      }
      $('#appeal-types .menu').html(result)
    }
    })
    $complaintModal.modal({
      autofocus: false,
      onApprove: function() {
        sendAppeal();
        return false;
      },
      onHidden: function() {
        restoreDefault();
      }
    }).modal('show');
  })
  
  $complaintContent.on('change keyup', function(e) {
    var content = $(this).val();
    if ($.trim(content).length > 0 && $complainType.dropdown('get value').length > 0 ) {
      $complaintBtn.removeClass('disabled');
      return;
    }
    $complaintBtn.addClass('disabled');
  })
  
  $('#appeal-file-container .file-upload').on('change', function () {
    var reader = new FileReader();
    fileObject = this.files[0];
    if (fileObject) {
      var fileObjectName = fileObject.name.split('.');
      var fileExt = fileObjectName[fileObjectName.length - 1];
      if (fileObjectName.length < 2 || ['zip', 'png', 'jpg', 'jpeg', 'doc', 'docx', 'pdf'].indexOf(fileExt.toLowerCase()) < 0) {
        fileObject = '';
        $('.file-upload').val('');
        $('.exceeded-size-tip').text("请选择上传 png/jpg/jpeg/doc/docx/zip/pdf 类型的文件").show();
        return;
      }
      if (fileObject.size > 10*1024*1024) {
        fileObject = '';
        $('.file-upload').val('');
        $('.exceeded-size-tip').text("上传文件大小不能超过 10M").show();
        return;
      }
      reader.readAsDataURL(fileObject);
      reader.onload = function() {
        var data = reader.result;
        $('.exceeded-size-tip').text('').hide();
        $('#appeal-file').val(fileObject.name);
      }
    }
  })
  
  $('#appeal-types').dropdown({
    showOnFocus: false,
    onChange: function(value, text, $selectedItem) {
      if (value.length > 0 && $.trim($complaintContent.val()).length > 0) {
        $complaintBtn.removeClass('disabled');
        return
      }
      $complaintBtn.addClass('disabled');
    }
  })
  
  function restoreDefault() {
    $('#appeal-types').dropdown('restore defaults');
    $('.appeal-reason').val('');
    $('#appeal-file').val('');
    $('.exceeded-size-tip').text('').hide();
    $('#appeal-file-container .file-upload').val('');
    $complaintModalTip.text('').hide();
    setTimeout(function() {
      setSendTip(false);
    }, 1500);
  }
  
  function sendAppeal() {
    var appealType = $complainType.dropdown('get value');
    var reason = $complaintContent.val();
    if (complaintSending) {
      return;
    }
    var formData = new FormData();
    formData.append('appeal_type_id', appealType);
    formData.append('reason', reason);
    formData.append('file', fileObject);
    formData.append('appeal_type', 'Project')
    $.ajax({
      type: 'POST',
      url: "/appeals?target_id=36419646",
      cache: false,
      contentType: false,
      processData: false,
      data: formData,
      beforeSend: function() {
        setSendStatus(true);
      },
      success: function(res) {
        if (res.status == 200) {
          setSendTip(true);
          setTimeout(function() {
            $complaintModal.modal('hide');
            restoreDefault();
          }, 3000);
        }
        setSendStatus(false);
      },
      error: function(err) {
        showTips(err.responseJSON.message, 'error');
        setSendStatus(false);
      }
    })
  }
  
  function showTips(text, type) {
    $complaintModalTip.text(text).show();
    if (type == 'error') {
      $complaintModalTip.removeClass('success').addClass('error');
    } else {
      $complaintModalTip.removeClass('error').addClass('success');
    }
  }
  
  function setSendStatus(value) {
    complaintSending = value;
    if (complaintSending) {
      $complaintBtn.addClass('loading');
      $complaintContent.attr('readonly', true);
      $complainType.attr('readonly', true);
    } else {
      $complaintBtn.removeClass('loading');
      $complaintContent.attr('readonly', false);
      $complainType.attr('readonly', false);
    }
  }
  
  function setSendTip(value) {
    if (value) {
      $('.appeal-success-tip').removeClass('hide');
      $('.appeal-tip').addClass('hide');
      $('.appeal-form').addClass('hide');
      $('#landing-complaint-modal .actions').addClass('hide');
    } else {
      $('.appeal-success-tip').addClass('hide');
      $('.appeal-tip').removeClass('hide');
      $('.appeal-form').removeClass('hide');
      $('#landing-complaint-modal .actions').removeClass('hide');
    }
  }
</script>

<style>
  .side-toolbar .bdsharebuttonbox a {
    font-size: 24px;
    color: white !important;
    opacity: 0.9;
    margin: 6px 6px 0px 6px;
    background-image: none;
    text-indent: 0;
    height: auto;
    width: auto;
  }
</style>
<style>
  #udesk_btn a {
    margin: 0px 20px 217px 0px !important;
  }
  #ent-sale-img-wrap {
    margin: 0px 15px 294px 0px !important;
  }
</style>
<script>
  (function() {
    $('#project-user-message').popup({
      position: 'left center'
    });
  
  }).call(this);
</script>
<script>
  Gitee.initSideToolbar({
    hasComment: true,
    commentUrl: '/Luo_Jing98358/lu-py#tree_comm_title'
  })
</script>
<link rel="stylesheet" media="all" href="https://cn-assets.gitee.com/webpacks/css/side_toolbar_feedback-5dcc1be9cca438cc952f.css" />
<script src="https://cn-assets.gitee.com/webpacks/side_toolbar_feedback-1f9bc4a6213ac171e57b.bundle.js"></script>





<script>
  (function() {
    this.__gac = {
      domain: 'www.oschina.net'
    };
  
  }).call(this);
</script>

<script src="https://cn-assets.gitee.com/webpacks/build_status-a0b08cd330f9f9ab2e6c.bundle.js"></script>
<script src="https://cn-assets.gitee.com/webpacks/scan_status-9d8541af0799261fce2a.bundle.js"></script>
<script src="https://cn-assets.gitee.com/webpacks/mermaid_render-a13de7e2b5d6f4663bb5.bundle.js"></script>
<script src="https://cn-assets.gitee.com/webpacks/check_runs-8fe2f388fec18d6b424e.bundle.js"></script>
</body>
</html>
